crimeReportForwardRequest
In GTA:SA a crime is reported by its victim or a witness. When that witness runs in another player’s game, the server forwards the report to the offender’s game, where it can raise their wanted level. This decision asks your gamemode first.
Renamed in 0.28 from crimeRequest; see renamed names.
Signature
Section titled “Signature”server.on("crimeReportForwardRequest", ({ reporter, offender, crimeType, position, minimumWantedLevel }) => boolean | void | Promise<boolean | 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. |
Returns
Section titled “Returns”false drops the report and the wanted level that comes with it. true, or nothing, lets it through. The first
false stops the handlers after it. See how decisions work.
Example
Section titled “Example”Some players are never reported.
import { server } from "nativemp";
const untouchable = new Set<number>();server.on("crimeReportForwardRequest", ({ offender }) => !untouchable.has(offender.id));Related
Section titled “Related”crimeReportForwarded: a report reached the offenderplayerWantedLevelChangeRequest: decide before a wanted level changes- Crimes: GTA:SA’s crime types
- Wanted and emergency guide