Kartik Scripts

Events

This document details custom network events exposed by kartik-policejob that can be utilized by external scripts for integration.

🔒 Restraints & Compliance

Other resources (such as custom radial menus, mini-games, or heist scripts) can trigger these events to restrain or transport players.

Client-to-Server Events

These events are triggered from client-side scripts of external resources:

Event NameParametersDescription
kartik-policejob:server:toggleCufftargetSrc (int), kind (string), side (string)Restrain/release target suspect. kind can be 'soft' or 'hard', and side can be 'front' or 'back'.
kartik-policejob:server:doubleLocktargetSrc (int)Secure handcuffs with a double lock, preventing standard lockpicking attempts.
kartik-policejob:server:toggleEscorttargetSrc (int)Toggle escorting status on target suspect.
kartik-policejob:server:vehicleSuspecttargetSrc (int), put (bool), seat (int, optional)Put target suspect in vehicle (true) or pull them out (false). seat picks a passenger seat (0 front passenger, 1 rear left, 2 rear right, ...). Without it, or if that seat is taken, the rear seats are filled first.

⛓️ Ankle Monitor

Server Events (server-side only)

Listen with AddEventHandler in a server script. These are local server events, clients cannot trigger them.

Event NameParametersDescription
kartik-policejob:ankleTamperedalert (table)Fired once when a wearer cuts off their ankle monitor (only when tamperAlert.enabled is on).

alert fields:

FieldTypeDescription
codestringCall code from tamperAlert.code (default '10-99')
titlestringAlert title from tamperAlert.title
descriptionstringReady-to-show text with the wearer's name
labelstringWearer's character name
citizenIdstringWearer's citizen id
sourcenumberWearer's server id
coordsvector3Last known location (where the monitor was cut off)
jobstableJob names the alert is meant for
AddEventHandler('kartik-policejob:ankleTampered', function(alert)
    print(('%s cut their monitor at %s'):format(alert.label, alert.coords))
end)

On this page