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