The Lab
LAW native

NUM_CRIMES_SUPPRESSED

returns int2 paramsbuild 1207

Returns how many crimes of type crimeType have been suppressed for player.

Signature

C
int NUM_CRIMES_SUPPRESSED(Player player, Hash crimeType); // 0xC08E804C91F47C80 b1207

Parameters

#NameType
1playerPlayer
2crimeTypeHash

Facts

Facts about NUM_CRIMES_SUPPRESSED
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.

Lua
local result = Citizen.InvokeNative(0xC08E804C91F47C80, -- NUM_CRIMES_SUPPRESSED
  PlayerId(), -- Player player
  GetHashKey("name"), -- Hash crimeType
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xC08E804C91F47C80", // NUM_CRIMES_SUPPRESSED
  PlayerId(), // Player player
  GetHashKey("name"), // Hash crimeType
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xC08E804C91F47C80, // NUM_CRIMES_SUPPRESSED
  API.PlayerId(), // Player player
  (uint)API.GetHashKey("name") // Hash crimeType
);
All LAW natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.