crimeReportForwarded
Tells your gamemode that a crime report reached the offender’s game, after
crimeReportForwardRequest allowed it. A refused report does not send
this event.
Renamed in 0.28 from crimeObserved; see renamed names.
Signature
Section titled “Signature”server.on("crimeReportForwarded", ({ reporter, offender, reportingEntityNetworkId, offenderPedNetworkId, crimeType, position, registerImmediately, reducedPoliceInterest, minimumWantedLevel, provenance }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
reporter |
PlayerSnapshot |
The player whose game saw the crime. |
offender |
PlayerSnapshot |
The player who did it. |
reportingEntityNetworkId |
number |
The network ID of the victim or witness. It is not necessarily the reporter’s own ped. |
offenderPedNetworkId |
number |
The network ID of the offender’s ped. |
crimeType |
number |
GTA:SA’s crime type, 0-22. |
position |
Vector3 |
Where it happened. |
registerImmediately |
boolean |
The game asked to register the crime at once. |
reducedPoliceInterest |
boolean |
The game marked the crime as one the police care less about. |
minimumWantedLevel |
number |
The wanted level the crime sets at least, 0-6. |
provenance |
"client-report" |
A player’s game reported it: an observation, not proof. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("crimeReportForwarded", ({ reporter, offender, crimeType }) => { server.log(`${reporter.name} reported crime ${crimeType} by ${offender.name}`);});Related
Section titled “Related”CrimeReportForwardRequestPayload: the payload- Crimes: GTA:SA’s crime types
crimeReportForwardRequest: decide whether a report is passed onplayerWantedLevelChanged: a wanted level changed- Wanted and emergency guide