PlayerAimedAtPedPayload
What playerAimedAtPed gets: the payload a handler receives.
Renamed in 0.28 from AimPayload; see renamed names.
Definition
Section titled “Definition”type PlayerAimedAtPedPayload = { aimer: PlayerSnapshot | null; target: PlayerSnapshot | null; aimerPedNetworkId: number; targetPedNetworkId: number; targetSeat: number | null; provenance: "client-report";};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
aimer |
PlayerSnapshot or null |
The player aiming. |
target |
PlayerSnapshot or null |
The player aimed at, or null for an NPC. |
aimerPedNetworkId |
number |
The aiming ped’s network ID. |
targetPedNetworkId |
number |
The network ID of what was aimed at; a vehicle’s ID for the NPCs in it. |
targetSeat |
number | null |
null for the entity itself; for an NPC in a vehicle, its seat: 0 the driver, 1-3 a passenger. Always null for a player. |
provenance |
"client-report" |
The aimer’s game says so; the server doesn’t prove it. |
Related
Section titled “Related”playerAimedAtPed: the event