blockDeath
exports["RiP-Death"]:blockDeath(state)
This function sets the client players remaining death-timout time
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
state | Boolean | No | Toggle blocking status |
Example
RegisterCommand('test', function()
exports["RiP-Death"]:blockDeath(true)
Citizen.SetTimeout(10*1000, function()
exports["RiP-Death"]:blockDeath(false)
print("death-screen was blocked for 10 seconds")
end)
end)