Interactions
ALL INTERACTION EVENTS IS GOING THROUGH SERVER EVENTS, THEY ARE SECURED ON SERVER SIDE AND THIS FILE IS OPEN SOURCE!
Hard Cuff
Use following event to toggle Hardcuffs on Closest Player
TriggerEvent('p_policejob/hardCuff')
Soft Cuff
Use following event to toggle Softcuffs on Closest Player
TriggerEvent('p_policejob/softCuff')
Tie Player
Use following event to toggle Rope Tie on Closest Player
TriggerEvent('p_policejob/ropeCuff')
Search Player
Use following event to Search Closest Player
TriggerEvent('p_policejob/searchPlayer')
Escort Player
Use following event to toggle Escort on Closest Player
TriggerEvent('p_policejob/escortPlayer')
isInCuffProcess
With following export you can check if player is currently in cuff process.
exports['p_policejob']:isInCuffProcess()
Return:
state:
boolean
draggingPlayer
Get the player you are currently dragging or other player dragging.
LocalPlayer.state.draggingPlayer
Player(playerId).state.draggingPlayer
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
draggedBy
Get the player which currently dragging you or other player.
LocalPlayer.state.draggedBy
Player(playerId).state.draggedBy
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
carryingPlayer
Get the player you are currently carrying or other player carrying.
LocalPlayer.state.carryingPlayer
Player(playerId).state.carryingPlayer
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
carriedBy
Get the player which currently carry you or other player.
LocalPlayer.state.draggedBy
Player(playerId).state.draggedBy
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
isCuffed
Get the player cuff state.
LocalPlayer.state.isCuffed
Player(playerId).state.isCuffed
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
cuffType
Get the player cuff type.
LocalPlayer.state.cuffType
Player(playerId).state.cuffType
playerId:
number
Existing player server id
Return:
type:
"cuffs" / "rope"
or"none"
hasHeadBag
Check if player has headbag on head.
LocalPlayer.state.hasHeadBag
Player(playerId).state.hasHeadBag
playerId:
number
Existing player server id
Return:
state:
boolean
ornil
Last updated