Player
Last updated
Last updated
Parameters
clientId - number
- Player Index - equal to PlayerId()
serverId - number
- Player Server Id
ped - number
- Player Index - equal to PlayerPedId()
coords - vector3
- Player Coords - equal to GetEntityCoords(PlayerPedId())
heading - float
- Player Heading - equal to GetEntityHeading(PlayerPedId())
vehicle - number
- A vehicle handle
seat - number
- Seat, the player is in - equal to GetVehiclePedIsIn(PlayerPedId(), false)
weapon - number
- Hash of Players current weapon - equal to GetCurrentPedWeapon(PlayerPedId(), true)
Returns
key - string
- The key that changed
value - any
- The new value of the changed key
oldValue - any
- The old value of the changed key
Description See MSK.Player above for parameter "key"
Parameters
coords - vector3
- Coords - Optional, default: playerCoords
Returns
player - number
- Player Index - equal to PlayerId()
distance - float
- The Distance to this Player
Parameters
coords - vector3
- Coords
maxDistance - float
- Max distance to check for players - Max Distance is 200.0