Misc
playersWithBand
With following state bag you can get all players with tracking bands.
GlobalState.playersWithBandReturn:
object|{ [identifier]: playerData }
playerData
object
identifier:
stringcoords:
vector3heading:
numberornilonline:
booleanname:
string
PoliceObject
Use following statebag to check if entity is police object.
Entity(entity).state.PoliceObjectentity:
numberExisting entity on server
PlaySound
Use following export to play sound for players within distance.
exports['p_policejob']:PlaySound(playerId, data)playerId:
numberExisting player server id
data:
tablefile:
stringdistance:
number| max: 150.0volume:
number| 0.0 - 1.0
hasTrackingBand
Use following statebag to check if player has tracking band
Player(playerId).state.hasTrackingbandplayerId:
numberExisting player server id
Return:
state:
boolean
Last updated