NUM_CRIMES_SUPPRESSED
Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN
Hash
0xC08E804C91F47C80Runtime name
NumCrimesSuppressedNamespaceLAW
SideClient
NameOfficial
Docs
Since build1207
Signature
int NUM_CRIMES_SUPPRESSED(Player player, Hash crimeType);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
crimeType | Hash | — |
Returns int
Description
Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN
Usage
local retval = NumCrimesSuppressed(player, crimeType)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC08E804C91F47C80, player, crimeType, Citizen.ResultAsInteger())JavaScript and C#
const retval = NumCrimesSuppressed(player, crimeType);
// by hash
const retval = Citizen.invokeNative('0xC08E804C91F47C80', player, crimeType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xC08E804C91F47C80, player, crimeType);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.