exports["jobs_creator"]:setHandcuffs(playerId, state)
-- This is just an example and won't work, requires you to use the export properly
RegisterNetEvent("hospital_script:playerDead", function(playerId)
-- The script code
-- The script code
-- The script code
-- The dead player is not handcuffed anymore
exports["jobs_creator"]:setHandcuffs(playerId, false)
end)
Parameters
| Name | Data Type | Description |
|---|---|---|
playerId | integer | The target player’s server ID |
state | boolean | true = handcuffed, false = free |
