Skip to content

Exports

Use this to open the player search flow from another resource:

exports['ars_police']:SearchPlayer(player)

Checking If a Player is Cuffed (Client-Side)

Section titled “Checking If a Player is Cuffed (Client-Side)”

Use this on the client to check the local player’s cuffed state:

exports["ars_police"]:IsHandcuffed()

Checking If a Player is Cuffed (Server-Side)

Section titled “Checking If a Player is Cuffed (Server-Side)”

Use this on the server when you need to check another player’s state:

exports['ars_police']:IsHandcuffed(source)

Checking Number of Cops Online (Server-Side)

Section titled “Checking Number of Cops Online (Server-Side)”

Use one of these server-side helpers to get the current police count:

exports["ars_police"]:NumberOfPoliceOnline() -- optimized
exports["ars_police"]:GetPoliceOnline() -- not optimized

Call this on the client when you want to start escorting a target:

exports["ars_police"]:EscortPlayer(targetId)

Call this on the client to trigger the carry or kidnap action:

exports["ars_police"]:KidnapPlayer()

Opening Jail Menu with All Closed Players (Client-Side)

Section titled “Opening Jail Menu with All Closed Players (Client-Side)”

Use this on the client to open the jail dialog:

exports['ars_police']:JailDialog()