Scripting/Client/Classes/Player
| Property | Type | Access | Description |
|---|---|---|---|
ID | integer | r | |
Name | string | r | |
Health / Armour | float | r | |
Pos | table | rw* | {x,y,z}. *Writable on the local player only (teleports). |
Angle | float | rw* | Degrees. *Local only. |
Velocity | table | r | |
Skin | integer | r | |
Weapon / WeaponAmmo | integer | r | Current weapon and its total ammo. |
WeaponClip | integer | r | v0.4+: rounds left in the clip of the weapon in hand. Only known for the local player (0 for others). |
Ping / Score | integer | r | |
Team / Colour | integer | r | Remote players only (0 for yourself). |
Vehicle | Vehicle|null | r | Vehicle the player is in. |
Frozen | boolean | rw* | *Local only. Frozen = true stops the local player from moving. |
Categories: Client classes