onClientHurt
From Liberty Unleashed Wiki
This event is called when the local player gets hurt.
Note: This does not fire when the player gets shot. Use onClientShot instead.
Syntax
function onClientHurt( entity )
Arguments
- entity - The pointer to the entity that hurt the player. Either vehicle or null
Returns
- 1 - Let the player be hurt normally
- 0 - Stops the player being hurt
Example
Some explanation here
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
-- todo
Notes
-- List of used functions and other notes here.
Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn