Functions
List and explanation of all functions and how to use them. (Work in progress)
Basic Information
You are able to call premade functions or events.
If you call unique names, you are able to trigger spawning of NPCs or enable action spots.
Functions are triggered one by one.
How to call events
How to call unique functions
I mentioned above that you are able to call your own unique function names. With this feature you can assign NPCs and action spots to these unique names to spawn/create/trigger them. It works also for premade functions like: START, MAIN
List of premade functions
Complete list of premade functions and some explanation of them.
START
Triggers 'cooldown' timer of heist.
You can trigger the function unlimited times, even if it's started. It will keep just one timer without reset.
MAIN
This function is triggered at start. You can assign this to action spots or npcs to spawn them instantly.
CLEAR
Clears all entities and disables checkpoints with actions spots. Only works if heist has ongoing cooldown.
NOTIFY
Shows notify on the screen.
CALL_ALERT
Triggers alert to all defined jobs in main config of script.
SET_NPC_STATE
Calling this function you are able to switch relationships between players and npcs in the heist.
TELEPORT
Allows player to teleport to any location.
DELETE_ENTITIES
Deletes entities with specific spawn name inside the heist.
DOOR_SYSTEM
Used for door system to open/close door inside the heist.
LASER
Create laser at designated position.
REMOVE_LASER
Removes laser from position.
FINGERPRINT
Drops fingerprint on current location of player.
Depends on your evidence system.
Currently it's connected to stock qb-policejob evidence, but the function is opened in bridge/client/utils.lua to modify.
START_GAS
Starts gas at designated position.
STOP_GAS
Stops gas with specific id.
ALARM
Triggers alarm at designated location.
LOCK_DOOR
Only for qb and ox doorlocks.
UNLOCK_DOOR
Only for qb and ox doorlocks.
Function List
Last updated