{"hash":"0x318F0F9A4426CFA2","ns":"LAW","name":"_0x318F0F9A4426CFA2","slug":"0x318F0F9A4426CFA2","official":false,"named":false,"luaName":"N_0x318f0f9a4426cfa2","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"ped","type":"Ped"},{"name":"p1","type":"Any*"}],"summary":"Only used in R* SP Script av_amb_camp_robbery","descriptions":[{"source":"alloc8or","format":"text","body":"Only used in R* SP Script av_amb_camp_robbery"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/LAW/0x318F0F9A4426CFA2","markdownUrl":"https://natives.borderlinerp.com/natives/LAW/0x318F0F9A4426CFA2.md","snippets":{"lua":"local retval, p1 = N_0x318f0f9a4426cfa2(ped, p1)","luaInvoke":"local retval, p1 = Citizen.InvokeNative(0x318F0F9A4426CFA2, ped, Citizen.PointerValueIntInitialized(p1), Citizen.ResultAsInteger())","js":"const [retval, p1] = N_0x318f0f9a4426cfa2(ped, p1);","jsInvoke":"const [retval, p1] = Citizen.invokeNative('0x318F0F9A4426CFA2', ped, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var p1 = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x318F0F9A4426CFA2, ped, p1);\n// p1.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","This native has no known name, so the runtime exposes it only as `N_0x318f0f9a4426cfa2` (if present in the client snapshot). `InvokeNative` with the hash always works."]}}