Table of Contents

Enum PlayerState

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the various states a player can be in during gameplay.

public enum PlayerState

Fields

Driver = 2

The player is driving a vehicle.

EnterVehicleDriver = 5

The player is entering a vehicle as the driver.

EnterVehiclePassenger = 6

The player is entering a vehicle as a passenger.

ExitVehicle = 4

The player is exiting a vehicle.

None = 0

The player is not in any specific state.

OnFoot = 1

The player is on foot.

Passenger = 3

The player is a passenger in a vehicle.

Spawned = 8

The player has spawned in the game world.

Spectating = 9

The player is spectating another player or entity.

Wasted = 7

The player is wasted (dead).