onPlayerStateChange
Description
This function is triggered when a player changes his state (not animation or action. eg: is passenger, is onfoot).
| Name | Description |
|---|---|
| player | The pointer of the player |
| oldState | Old action of the player |
| newState | New action of the player |
Example
function onPlayerStateChange(player, oldState, newState) { PrivMessage(player, "Your current state ID: " + newState);}