The Lab
POPULATION native

GET_NUM_MODELS_IN_POPULATION_SET

returns int1 parambuild 1207

Returns the number of models in the population set popSetHash.

Signature

C
int GET_NUM_MODELS_IN_POPULATION_SET(Hash popSetHash); // 0xA1E3171ED0E47564 b1207

Parameters

#NameType
1popSetHashHash

Facts

Facts about GET_NUM_MODELS_IN_POPULATION_SET
Name
GET_NUM_MODELS_IN_POPULATION_SET
Hash
0xA1E3171ED0E47564
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(0xA1E3171ED0E47564, -- GET_NUM_MODELS_IN_POPULATION_SET
  GetHashKey("name"), -- Hash popSetHash
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xA1E3171ED0E47564", // GET_NUM_MODELS_IN_POPULATION_SET
  GetHashKey("name"), // Hash popSetHash
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xA1E3171ED0E47564, // GET_NUM_MODELS_IN_POPULATION_SET
  (uint)API.GetHashKey("name") // Hash popSetHash
);
All POPULATION natives

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