Listeners

On Duty Start

nex-duty:server:onDutyStart

Example:

AddEventHandler("nex-duty:server:onDutyStart", function(source, callsign, entity_id)
    -- do cool thing here!
end)

Returns

Value
Description
Example

source

The source of the unit

21

callsign

The callsign of the unit

"1S-21"

entity_id

The entity identifier

"sasp"

On Duty End

nex-duty:server:onDutyEnd

Example:

AddEventHandler("nex-duty:server:onDutyEnd", function(source, entity_id)
    -- do cool thing here!
end)

Returns

Value
Description
Example

source

The source of the unit

21

entity_id

The entity identifier

"sasp"

On Unit Suspended

nex-duty:server:onUnitSuspended

Example:

Returns

Value
Description
Example

source

The source of the unit

21

entity_id

The entity identifier

"sasp"

suspension_end

A UTC epoch timestamp of when the suspension ends.

"1767225600"

Last updated