For the complete documentation index, see llms.txt. This page is also available as Markdown.

Events

Send Unit On Duty

Client to Server nex-duty:server:go_on_duty

Argument
Type
Description
Example

entity_id

string

The entity identifier the player will be going on duty as

"lspd"

callsign [optional]

string

An optional callsign value for the

"1S-57" or null

loadout

integer

Whether the loadout for the entity should be applied to the player.

1 or 0

bodycam

integer

Whether the bodycam interface should be shown whilst on duty.

1 or 0

TriggerServerEvent("nex-duty:server:go_on_duty", "lspd", "1S-57", 0, 0)

Send Off / Suspend a Unit

Client to Server nex-duty:server:execute_user_action

Argument
Type
Description
Example

user

integer

The source of the player you intend to execute an action on.

12

action

string

suspend or offduty

suspend or offduty

data

object

The optional data for the function, length is required for a suspension, and is processed as an integer in hours.

entity

string

The entity identifier of the unit

lspd

TriggerServerEvent("nex-duty:server:execute_user_action", 12, "suspend", { "reason": "Reckless Endangerment", "length": 12 }, "lspd")
TriggerServerEvent("nex-duty:server:execute_user_action", 12, "offduty", { "reason": "Reckless Endangerment" }, "lspd")

Last updated