OnPlayerStateChange: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Called when the player state changes. [[PlayerState]]}} | ||
{{FuncSyntax|OnPlayerStateChange(player, newstate, oldstate)}} | {{FuncSyntax|OnPlayerStateChange(player, newstate, oldstate)}} | ||
Line 14: | Line 14: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{VehicleServerEvents}} |
Latest revision as of 11:19, 1 September 2020
Description
Called when the player state changes. PlayerState
Syntax
OnPlayerStateChange(player, newstate, oldstate)
Parameters
- player
The player who changes state. - newstate
The new state of the player. - oldstate
The old state of the player.
Example
__EDIT_ME__