RedM Natives

GET_NUM_MODELS_IN_POPULATION_SET

Hash0xA1E3171ED0E47564
Runtime nameGetNumModelsInPopulationSet
NamespacePOPULATION
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_NUM_MODELS_IN_POPULATION_SET(Hash popSetHash);

Parameters

NameTypeDescription
popSetHashHash—

Returns int

Usage

Lua
local retval = GetNumModelsInPopulationSet(popSetHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA1E3171ED0E47564, popSetHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNumModelsInPopulationSet(popSetHash);

// by hash
const retval = Citizen.invokeNative('0xA1E3171ED0E47564', popSetHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xA1E3171ED0E47564, popSetHash);
  • 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.