PlayerArrestedPayload
What playerArrested gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerArrestedPayload = { player: PlayerSnapshot; position: Vector3; copNetworkId: number | null; isHandledByGamemode: boolean;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
position |
Vector3 |
Where they were arrested. |
copNetworkId |
number | null |
The network ID of the cop who arrested them, or null when the server does not know that cop. |
isHandledByGamemode |
boolean |
true: no Busted screen, the player is still there and you decide. false: the game busts them. |
Related
Section titled “Related”playerArrested: the event