Skip to main content

blockDeath

exports["RiP-Death"]:blockDeath(state) 

This function sets the client players remaining death-timout time

Arguments

NameTypeOptionalExplenation
stateBooleanNoToggle 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)