RedM Natives

NUM_CRIMES_SUPPRESSED

Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN

Hash0xC08E804C91F47C80
Runtime nameNumCrimesSuppressed
NamespaceLAW
SideClient
NameOfficial
Docs
Since build1207

Signature

int NUM_CRIMES_SUPPRESSED(Player player, Hash crimeType);

Parameters

NameTypeDescription
playerPlayer—
crimeTypeHash—

Returns int

Description

Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN

Usage

Lua
local retval = NumCrimesSuppressed(player, crimeType)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC08E804C91F47C80, player, crimeType, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NumCrimesSuppressed(player, crimeType);

// by hash
const retval = Citizen.invokeNative('0xC08E804C91F47C80', player, crimeType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xC08E804C91F47C80, player, crimeType);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.