The Lab
POPULATION native

GET_PED_MODEL_NAME_IN_POPULATION_SET

returns Hash2 paramsbuild 1207

Returns the ped model hash at index in the population set popSetHash.

Signature

C
Hash GET_PED_MODEL_NAME_IN_POPULATION_SET(Hash popSetHash, int index); // 0x3EAFA1C533B7139E b1207

Parameters

#NameType
1popSetHashHash
2indexint

Facts

Facts about GET_PED_MODEL_NAME_IN_POPULATION_SET
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.

Lua
local hash = Citizen.InvokeNative(0x3EAFA1C533B7139E, -- GET_PED_MODEL_NAME_IN_POPULATION_SET
  GetHashKey("name"), -- Hash popSetHash
  0, -- int index
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x3EAFA1C533B7139E", // GET_PED_MODEL_NAME_IN_POPULATION_SET
  GetHashKey("name"), // Hash popSetHash
  0, // int index
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x3EAFA1C533B7139E, // GET_PED_MODEL_NAME_IN_POPULATION_SET
  (uint)API.GetHashKey("name"), // Hash popSetHash
  0 // int index
);
All POPULATION natives

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