Table of Contents

Struct PlayerClass

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

Defines player spawn class information.

public readonly struct PlayerClass
Inherited Members

Constructors

PlayerClass(int, int, Vector3, float, WeaponSlots)

Initializes a new instance of the PlayerClass struct.

public PlayerClass(int team, int skin, Vector3 spawn, float angle, WeaponSlots weapons)

Parameters

team int

The team ID.

skin int

The skin model ID.

spawn Vector3

The spawn position.

angle float

The spawn angle in degrees.

weapons WeaponSlots

The weapon slots for the class.

Fields

Angle

The spawn angle (rotation) for this class.

public readonly float Angle

Field Value

float

Skin

The skin model ID for this class.

public readonly int Skin

Field Value

int

Spawn

The spawn position for this class.

public readonly Vector3 Spawn

Field Value

Vector3

Team

The team ID for this class.

public readonly int Team

Field Value

int

Weapons

The weapon slots assigned to this class.

public readonly WeaponSlots Weapons

Field Value

WeaponSlots