Scripting/Server/Events/onPlayerActionChange

(v0.3-r2+) The player's ped changed what it is doing: jumping, falling, staggering, getting up, aiming, entering / leaving a vehicle, dying ... Values are the ACTION_* constants (appendix A.12). Reported by the player's own game, only while he is spawned. With player.NoFallAnim / player.NoStumble the suppressed states never show up here.

Syntax

onPlayerActionChange(player, oldAction, newAction)

Arguments

Example

function onPlayerActionChange( player, oldAction, newAction )
{
	MessagePlayer( "onPlayerActionChange fired", player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Spawning, deaths and combat

Categories: Server events | Spawning, deaths and combat