Misc
playersWithBand
With following state bag you can get all players with tracking bands.
GlobalState.playersWithBand
Return:
object
|{ [identifier]: playerData }
playerData
object
identifier:
string
coords:
vector3
heading:
number
ornil
online:
boolean
name:
string
PoliceObject
Use following statebag to check if entity is police object.
Entity(entity).state.PoliceObject
entity:
number
Existing entity on server
PlaySound
Use following export to play sound for players within distance.
exports['p_policejob']:PlaySound(playerId, data)
playerId:
number
Existing player server id
data:
table
file:
string
distance:
number
| max: 150.0volume:
number
| 0.0 - 1.0
hasTrackingBand
Use following statebag to check if player has tracking band
Player(playerId).state.hasTrackingband
playerId:
number
Existing player server id
Return:
state:
boolean
Last updated