{"hash":"0xBDED916A9F9B0604","ns":"PED","name":"_REQUEST_PED_FOR_SCENARIO_TYPE","slug":"_REQUEST_PED_FOR_SCENARIO_TYPE","official":false,"named":true,"luaName":"RequestPedForScenarioType","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"ped","type":"Ped"},{"name":"object","type":"Object"},{"name":"p2","type":"const char*"},{"name":"scenarioType","type":"Hash"},{"name":"p4","type":"const char*"},{"name":"p5","type":"BOOL"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PED/_REQUEST_PED_FOR_SCENARIO_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_REQUEST_PED_FOR_SCENARIO_TYPE.md","snippets":{"lua":"local retval = RequestPedForScenarioType(ped, object, p2, scenarioType, p4, p5)","luaInvoke":"local retval = Citizen.InvokeNative(0xBDED916A9F9B0604, ped, object, p2, scenarioType, p4, p5, Citizen.ResultAsInteger())","js":"const retval = RequestPedForScenarioType(ped, object, p2, scenarioType, p4, p5);","jsInvoke":"const retval = Citizen.invokeNative('0xBDED916A9F9B0604', ped, object, p2, scenarioType, p4, p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xBDED916A9F9B0604, ped, object, p2, scenarioType, p4, p5);","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."]}}