{"hash":"0x3F892CAF67444AE7","ns":"MISC","name":"CREATE_INCIDENT","slug":"CREATE_INCIDENT","official":true,"named":true,"luaName":"CreateIncident","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"dispatchService","type":"int"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"numUnits","type":"int"},{"name":"radius","type":"float"},{"name":"outIncidentID","type":"int*"},{"name":"p7","type":"Any"},{"name":"p8","type":"Any"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"dispatchService: see ENABLE_DISPATCH_SERVICE"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x3F892CAF67444AE7","gtaJhash":"0xFC5FF7B3","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/MISC/CREATE_INCIDENT","markdownUrl":"https://natives.borderlinerp.com/natives/MISC/CREATE_INCIDENT.md","snippets":{"lua":"local retval, outIncidentID = CreateIncident(dispatchService, x, y, z, numUnits, radius, p7, p8)","luaInvoke":"local retval, outIncidentID = Citizen.InvokeNative(0x3F892CAF67444AE7, dispatchService, x, y, z, numUnits, radius, Citizen.PointerValueInt(), p7, p8, Citizen.ReturnResultAnyway())","js":"const [retval, outIncidentID] = CreateIncident(dispatchService, x, y, z, numUnits, radius, p7, p8);","jsInvoke":"const [retval, outIncidentID] = Citizen.invokeNative('0x3F892CAF67444AE7', dispatchService, x + 0.0000001, y + 0.0000001, z + 0.0000001, numUnits, radius + 0.0000001, Citizen.pointerValueInt(), p7, p8, Citizen.returnResultAnyway());","csharp":"var outIncidentID = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x3F892CAF67444AE7, dispatchService, x, y, z, numUnits, radius, outIncidentID, p7, p8);\n// outIncidentID.GetResult<int>()","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.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}