Skip to content

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.

server.on("molotovImpactReported", ({ impactId, reporterPedNetworkId, player, impactKind, position, interior, provenance }) => void)
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.
gamemodes/my-mode.ts
import { server } from "nativemp";
server.on("molotovImpactReported", ({ impactId, player, position }) => {
server.log(`Molotov ${impactId} reported by ${player.name} at ${position.join(", ")}`);
});