GET_PED_MODEL_NAME_IN_POPULATION_SET
Returns the ped model hash at index in the population set popSetHash.
Signature
Hash GET_PED_MODEL_NAME_IN_POPULATION_SET(Hash popSetHash, int index); // 0x3EAFA1C533B7139E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | popSetHash | Hash |
| 2 | index | int |
Facts
| Name | GET_PED_MODEL_NAME_IN_POPULATION_SET |
|---|---|
| Hash | 0x3EAFA1C533B7139E |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x3EAFA1C533B7139E, -- GET_PED_MODEL_NAME_IN_POPULATION_SET
GetHashKey("name"), -- Hash popSetHash
0, -- int index
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x3EAFA1C533B7139E", // GET_PED_MODEL_NAME_IN_POPULATION_SET
GetHashKey("name"), // Hash popSetHash
0, // int index
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x3EAFA1C533B7139E, // GET_PED_MODEL_NAME_IN_POPULATION_SET
(uint)API.GetHashKey("name"), // Hash popSetHash
0 // int index
);Related POPULATION natives
- GET_NUM_MODELS_IN_POPULATION_SET
- GET_RANDOM_MODEL_FROM_POPULATION_SET
- SET_POPZONE_POPULATION_SET
- _SET_PED_SHOULD_IGNORE_AVOIDANCE_VOLUMES
- _GET_RANDOM_FISH_TYPE_FOR_LOCATION
- DISABLE_AMBIENT_ROAD_POPULATION
- ENABLE_AMBIENT_ROAD_POPULATION
- SET_SPAWNER_INFO_PRIORITY
- _0x08892122769770D5
- _0x0F1861101C9A9944
- _0x2161278C6322F740
- _0x247F86595D396344
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.