This function is called in each server tick for each player that has crouched.
Callback function
The default name for the callback function is OnPlayerCrouched. It has the following signature:
function MyOnPlayerCrouched(Player)
Parameters:
Name | Type | Notes |
Player | cPlayer | The player who has crouched. |
If the function returns false or no value, other plugins callbacks are called.
Code examplesRegistering the callback
cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_CROUCHED, MyOnPlayerCrouched);
|