Exports

This is the doc contains all script exports for both server & client.

circle-exclamation

Server Exports

CureInfection

Description: Cures player infection

Parameters

Name
Type
Description

src

number

Player server ID

skipItem

boolean

Skip item removal

Returns: boolean

Example

exports.rzr_zombies:CureInfection(source, true) -- will skip item checks as its true.

IsPlayerInfection

Description: Checks if player is infected

Parameters

Name
Type

src

number

Returns: boolean

Example


getZombieCount

Description: Gets active zombie count

Returns: number

Example


clearAllZombies

Description: Removes all zombies

Example


removeZombiesByOwner

Description: Removes zombies owned by player

Parameters

Name
Type

src

number

Example


clearAllNests

Description: Clears and resets all nests

Example


getBrokenNests

Description: Returns all broken nests

Returns: table

Example


isNestBroken

Description: Checks if a nest is broken

Parameters

Name
Type

nestId

any

Returns: boolean

Example


restoreBrokenNest

Description: Restores a broken nest

Parameters

Name
Type

nestId

any

Returns: boolean

Example


getBrokenNestsCount

Description: Gets count of broken nests

Returns: number

Example


Client Exports


CureInfection

Description: Cures local player infection

Returns: boolean

Example


IsInfected

Description: Checks if player is infected

Returns: boolean

Example


GetInfectionTimeLeft

Description: Time left in seconds

Returns: number

Example


Safe Zone Checks

IsInSafeZone

IsWeaponDisabledInSafeZone


This script also comes with an unlocked shared/framework.lua, this class can be used to edit the frameworks functions and apply your own scripts to support.

Last updated