NUM_CRIMES_SUPPRESSED
Returns how many crimes of type crimeType have been suppressed for player.
Signature
int NUM_CRIMES_SUPPRESSED(Player player, Hash crimeType); // 0xC08E804C91F47C80 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | crimeType | Hash |
Facts
| Name | NUM_CRIMES_SUPPRESSED |
|---|---|
| Hash | 0xC08E804C91F47C80 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xC08E804C91F47C80, -- NUM_CRIMES_SUPPRESSED
PlayerId(), -- Player player
GetHashKey("name"), -- Hash crimeType
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xC08E804C91F47C80", // NUM_CRIMES_SUPPRESSED
PlayerId(), // Player player
GetHashKey("name"), // Hash crimeType
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xC08E804C91F47C80, // NUM_CRIMES_SUPPRESSED
API.PlayerId(), // Player player
(uint)API.GetHashKey("name") // Hash crimeType
);Related LAW natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.