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