{"hash":"0xE76687023D8C8505","ns":"PED","name":"_GET_PED_INDEX_FROM_PERSCHAR_HASH","slug":"_GET_PED_INDEX_FROM_PERSCHAR_HASH","official":false,"named":true,"luaName":"GetPedIndexFromPerscharHash","game":"rdr3","apiset":"client","returnType":"Ped","params":[{"name":"persCharHash","type":"Hash"},{"name":"p1","type":"int"}],"summary":"Used for AUDIO / ANIMSCENE (REFERENCE_REGIONAL_CHARACTER)","descriptions":[{"source":"alloc8or","format":"text","body":"Used for AUDIO / ANIMSCENE (REFERENCE_REGIONAL_CHARACTER)\nParams: p1 = 0"},{"source":"vorp","format":"text","body":"Used for AUDIO / ANIMSCENE (REFERENCE_REGIONAL_CHARACTER)\nParams: p1 = 0\n_GET_PED_IN*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_GET_PED_INDEX_FROM_PERSCHAR_HASH","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_GET_PED_INDEX_FROM_PERSCHAR_HASH.md","snippets":{"lua":"local retval = GetPedIndexFromPerscharHash(persCharHash, p1)","luaInvoke":"local retval = Citizen.InvokeNative(0xE76687023D8C8505, persCharHash, p1, Citizen.ResultAsInteger())","js":"const retval = GetPedIndexFromPerscharHash(persCharHash, p1);","jsInvoke":"const retval = Citizen.invokeNative('0xE76687023D8C8505', persCharHash, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xE76687023D8C8505, persCharHash, p1);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}