{"hash":"0xF08E42BFA46BDFF8","ns":"MAP","name":"_GET_WAYPOINT_POSITION","slug":"_GET_WAYPOINT_POSITION","official":false,"named":true,"luaName":"GetWaypointPosition","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float*"},{"name":"y","type":"float*"}],"summary":"Unlike `GET_WAYPOINT_COORDS` (0x29B30D07C3F7873B), which returns a single value, this native returns the x and y coordinates of the waypoint separately as float pointers.","descriptions":[{"source":"alloc8or","format":"text","body":"Unlike `GET_WAYPOINT_COORDS` (0x29B30D07C3F7873B), which returns a single value, this native returns the x and y coordinates of the waypoint separately as float pointers.\nImage: https://i.imgur.com/tu1jnY7.png"},{"source":"vorp","format":"text","body":"Unlike `GET_WAYPOINT_COORDS - 0x29B30D07C3F7873B`, which returns a single value, this native returns the x and y coordinates of the waypoint separately as floats from pointer. To retrieve each coordinate, `Citizen.PointerValueFloat()` must be used with this function."}],"examples":[{"lang":"lua","code":"local x,y = _GET_WAYPOINT_POSITION(Citizen.PointerValueFloat(),Citizen.PointerValueFloat())","source":"vorp"}],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/MAP/_GET_WAYPOINT_POSITION","markdownUrl":"https://natives.borderlinerp.com/natives/MAP/_GET_WAYPOINT_POSITION.md","snippets":{"lua":"local retval, x, y = GetWaypointPosition()","luaInvoke":"local retval, x, y = Citizen.InvokeNative(0xF08E42BFA46BDFF8, Citizen.PointerValueFloat(), Citizen.PointerValueFloat(), Citizen.ReturnResultAnyway())","js":"const [retval, x, y] = GetWaypointPosition();","jsInvoke":"const [retval, x, y] = Citizen.invokeNative('0xF08E42BFA46BDFF8', Citizen.pointerValueFloat(), Citizen.pointerValueFloat(), Citizen.returnResultAnyway());","csharp":"var x = new OutputArgument();\nvar y = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xF08E42BFA46BDFF8, x, y);\n// x.GetResult<float>()\n// y.GetResult<float>()","notes":["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."]}}