PoliceUnitDispatchRequestPayload
What policeUnitDispatchRequest gets: the payload a handler receives.
Renamed in 0.28 from PoliceDispatchPayload; see renamed names.
Definition
Section titled “Definition”type PoliceUnitDispatchRequestPayload = { player: PlayerSnapshot; unit: DispatchUnitProposal; wantedLevel: number;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The wanted player whose game sends the unit. |
unit |
DispatchUnitProposal |
The vehicle or ped and its crew. |
wantedLevel |
number |
The player’s wanted level, 1-6. |
Related
Section titled “Related”policeUnitDispatchRequest: the decision