{"hash":"0x559FC1D310813031","ns":"FIRE","name":"_GET_CLOSEST_FIRE_POS_IN_VOLUME","slug":"_GET_CLOSEST_FIRE_POS_IN_VOLUME","official":false,"named":true,"luaName":"GetClosestFirePosInVolume","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"outPosition","type":"Vector3*"},{"name":"posX","type":"float"},{"name":"posY","type":"float"},{"name":"posZ","type":"float"},{"name":"rotX","type":"float"},{"name":"rotY","type":"float"},{"name":"rotZ","type":"float"},{"name":"scaleX","type":"float"},{"name":"scaleY","type":"float"},{"name":"scaleZ","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1232","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/FIRE/_GET_CLOSEST_FIRE_POS_IN_VOLUME","markdownUrl":"https://natives.borderlinerp.com/natives/FIRE/_GET_CLOSEST_FIRE_POS_IN_VOLUME.md","snippets":{"lua":"local retval, outPosition = GetClosestFirePosInVolume(posX, posY, posZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ)","luaInvoke":"local retval, outPosition = Citizen.InvokeNative(0x559FC1D310813031, Citizen.PointerValueVector(), posX, posY, posZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, Citizen.ReturnResultAnyway())","js":"const [retval, outPosition] = GetClosestFirePosInVolume(posX, posY, posZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ);","jsInvoke":"const [retval, outPosition] = Citizen.invokeNative('0x559FC1D310813031', Citizen.pointerValueVector(), posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, scaleX + 0.0000001, scaleY + 0.0000001, scaleZ + 0.0000001, Citizen.returnResultAnyway());","csharp":"var outPosition = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x559FC1D310813031, outPosition, posX, posY, posZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ);\n// outPosition.GetResult<Vector3>()","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.","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."]}}