GET_NUM_MODELS_IN_POPULATION_SET
Hash
0xA1E3171ED0E47564Runtime name
GetNumModelsInPopulationSetNamespacePOPULATION
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_NUM_MODELS_IN_POPULATION_SET(Hash popSetHash);Parameters
| Name | Type | Description |
|---|---|---|
popSetHash | Hash | — |
Returns int
Usage
local retval = GetNumModelsInPopulationSet(popSetHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA1E3171ED0E47564, popSetHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNumModelsInPopulationSet(popSetHash);
// by hash
const retval = Citizen.invokeNative('0xA1E3171ED0E47564', popSetHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xA1E3171ED0E47564, popSetHash);- 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.