molotovImpactReported
Tells your gamemode that a player’s game saw a Molotov cocktail hit. Each hit is sent once.
Renamed in 0.28 from explosionObserved; see renamed names.
Signature
Section titled “Signature”server.on("molotovImpactReported", ({ impactId, reporterPedNetworkId, player, impactKind, position, interior, provenance }) => void)Parameters
Section titled “Parameters”| Name | 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. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("molotovImpactReported", ({ impactId, player, position }) => { server.log(`Molotov ${impactId} reported by ${player.name} at ${position.join(", ")}`);});Related
Section titled “Related”MolotovImpactReportedPayload: the payloadsharedFireStarted: a fire startedcrimeReportForwarded: a crime report was passed on- Wanted and emergency guide