{"hash":"0x8974647ED222EA5F","ns":"WATER","name":"TEST_PROBE_AGAINST_ALL_WATER","slug":"TEST_PROBE_AGAINST_ALL_WATER","official":true,"named":true,"luaName":"TestProbeAgainstAllWater","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"x1","type":"float"},{"name":"y1","type":"float"},{"name":"z1","type":"float"},{"name":"x2","type":"float"},{"name":"y2","type":"float"},{"name":"z2","type":"float"},{"name":"flags","type":"int"},{"name":"intersectionPos","type":"Vector3*"}],"summary":"SCRIPT_WATER_TEST_RESULT_NONE, SCRIPT_WATER_TEST_RESULT_WATER, SCRIPT_WATER_TEST_RESULT_BLOCKED,","descriptions":[{"source":"alloc8or","format":"text","body":"enum eScriptWaterTestResult\n{\n\tSCRIPT_WATER_TEST_RESULT_NONE,\n\tSCRIPT_WATER_TEST_RESULT_WATER,\n\tSCRIPT_WATER_TEST_RESULT_BLOCKED,\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x8974647ED222EA5F","gtaJhash":"0x4A962D55","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WATER/TEST_PROBE_AGAINST_ALL_WATER","markdownUrl":"https://natives.borderlinerp.com/natives/WATER/TEST_PROBE_AGAINST_ALL_WATER.md","snippets":{"lua":"local retval, intersectionPos = TestProbeAgainstAllWater(x1, y1, z1, x2, y2, z2, flags, intersectionPos)","luaInvoke":"local retval, intersectionPos = Citizen.InvokeNative(0x8974647ED222EA5F, x1, y1, z1, x2, y2, z2, flags, Citizen.PointerValueVector(), Citizen.ResultAsInteger())","js":"const [retval, intersectionPos] = TestProbeAgainstAllWater(x1, y1, z1, x2, y2, z2, flags, intersectionPos);","jsInvoke":"const [retval, intersectionPos] = Citizen.invokeNative('0x8974647ED222EA5F', x1 + 0.0000001, y1 + 0.0000001, z1 + 0.0000001, x2 + 0.0000001, y2 + 0.0000001, z2 + 0.0000001, flags, Citizen.pointerValueVector(), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var intersectionPos = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x8974647ED222EA5F, x1, y1, z1, x2, y2, z2, flags, intersectionPos);\n// intersectionPos.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.","The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}