Player::action
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.
This property returns player action.
Note: this property is read-only.
List of actions:
- climbing
- in_cover
- aiming_from_cover
- diving
- entering_vehicle
- exiting_vehicle
- jumping
- moving
- moving_aiming
- moving_reloading
- parachuting
- ragdoll
- aiming
- reloading
- stopped
Example
if (player.action == 'in_cover') {
player.outputChatBox('You are in the cover!');
}