{"hash":"0x9C77964B0E07B633","ns":"STREAMING","name":"_GET_IPL_BOUNDING_SPHERE","slug":"_GET_IPL_BOUNDING_SPHERE","official":false,"named":true,"luaName":"GetIplBoundingSphere","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"iplHash","type":"Hash"},{"name":"position","type":"Vector3*"},{"name":"radius","type":"float*"}],"summary":"Outputs IPL position and radius (previously wrongly named heading)","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs IPL position and radius (previously wrongly named heading)\nhttps://github.com/femga/rdr3_discoveries/blob/master/imaps/imaps_with_coords_and_heading.lua"},{"source":"femga","format":"pre","body":"// 0x9C77964B0E07B633       (by Disquse)\nBOOL _GET_IMAP_POSITION_AND_HEADING(Hash imapHash, Vector3* position, float* heading);\n/*\n  This one can be extremely useful for imap researching.\n*/\n\nUsage example:\nlocal isValid, position, heading = Citizen.InvokeNative(0x9C77964B0E07B633, 2040843256, Citizen.PointerValueVector(), Citizen.PointerValueFloat(), Citizen.ResultAsInteger(), Citizen.ReturnResultAnyway())\nif isValid then\n  local ped = PlayerPedId()\n  SetEntityCoords(ped, position)\n  SetEntityHeading(ped, heading)\nend"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/STREAMING/_GET_IPL_BOUNDING_SPHERE","markdownUrl":"https://natives.borderlinerp.com/natives/STREAMING/_GET_IPL_BOUNDING_SPHERE.md","snippets":{"lua":"local retval, position, radius = GetIplBoundingSphere(iplHash)","luaInvoke":"local retval, position, radius = Citizen.InvokeNative(0x9C77964B0E07B633, iplHash, Citizen.PointerValueVector(), Citizen.PointerValueFloat(), Citizen.ReturnResultAnyway())","js":"const [retval, position, radius] = GetIplBoundingSphere(iplHash);","jsInvoke":"const [retval, position, radius] = Citizen.invokeNative('0x9C77964B0E07B633', iplHash, Citizen.pointerValueVector(), Citizen.pointerValueFloat(), Citizen.returnResultAnyway());","csharp":"var position = new OutputArgument();\nvar radius = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x9C77964B0E07B633, iplHash, position, radius);\n// position.GetResult<Vector3>()\n// radius.GetResult<float>()","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}