MolotovImpactReportedPayload
What molotovImpactReported gets: the payload a handler receives.
Renamed in 0.28 from ExplosionObservedPayload; see renamed names.
Definition
Section titled “Definition”type MolotovImpactReportedPayload = Readonly<{ impactId: string; reporterPedNetworkId: number; player: PlayerSnapshot; impactKind: "molotov"; position: Vector3; interior: number; provenance: "client-report";}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
impactId |
string |
The hit’s ID, a decimal string. Keep it as a string. |
reporterPedNetworkId |
number |
The network ID of the reporting player’s ped. |
player |
PlayerSnapshot |
The player whose game saw it. |
impactKind |
"molotov" |
Always a Molotov for now. |
position |
Vector3 |
Where it hit. |
interior |
number |
The interior, 0 outside. |
provenance |
"client-report" |
A player’s game reported it: an observation, not proof of who threw it or what it hurt. |
Related
Section titled “Related”molotovImpactReported: the event