{"hash":"0x0BCD4091C8EABA42","ns":"PED","name":"_CREATE_META_PED","slug":"_CREATE_META_PED","official":false,"named":true,"luaName":"CreateMetaPed","game":"rdr3","apiset":"client","returnType":"Ped","params":[{"name":"requestId","type":"int"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"heading","type":"float"},{"name":"p5","type":"BOOL"},{"name":"p6","type":"BOOL"},{"name":"p7","type":"BOOL"},{"name":"p8","type":"BOOL"},{"name":"p9","type":"BOOL"}],"summary":"Only used in SP scripts, for example odriscolls1: BOOLS: true, true, true, false, false","descriptions":[{"source":"alloc8or","format":"text","body":"Only used in SP scripts, for example odriscolls1: BOOLS: true, true, true, false, false"}],"examples":[],"aliases":[],"enums":[],"related":["0xF97C34C33487D569"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_CREATE_META_PED","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_CREATE_META_PED.md","snippets":{"lua":"local retval = CreateMetaPed(requestId, x, y, z, heading, p5, p6, p7, p8, p9)","luaInvoke":"local retval = Citizen.InvokeNative(0x0BCD4091C8EABA42, requestId, x, y, z, heading, p5, p6, p7, p8, p9, Citizen.ResultAsInteger())","js":"const retval = CreateMetaPed(requestId, x, y, z, heading, p5, p6, p7, p8, p9);","jsInvoke":"const retval = Citizen.invokeNative('0x0BCD4091C8EABA42', requestId, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, p5, p6, p7, p8, p9, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x0BCD4091C8EABA42, requestId, x, y, z, heading, p5, p6, p7, p8, p9);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","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."]}}