The Lab
MAP native

_GET_WAYPOINT_POSITION

returns BOOL2 paramsbuild 1207

Writes the X and Y of the player's map waypoint into x and y, returning true if a waypoint is set.

Signature

C
BOOL _GET_WAYPOINT_POSITION(float* x, float* y); // 0xF08E42BFA46BDFF8 b1207

Parameters

#NameType
1xfloat* (out pointer)
2yfloat* (out pointer)

Facts

Facts about _GET_WAYPOINT_POSITION
Name
_GET_WAYPOINT_POSITION
Hash
0xF08E42BFA46BDFF8
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, x, y = Citizen.InvokeNative(0xF08E42BFA46BDFF8, -- _GET_WAYPOINT_POSITION
  Citizen.PointerValueFloat(), -- float* x
  Citizen.PointerValueFloat(), -- float* y
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, x, y] = Citizen.invokeNative("0xF08E42BFA46BDFF8", // _GET_WAYPOINT_POSITION
  Citizen.pointerValueFloat(), // float* x
  Citizen.pointerValueFloat(), // float* y
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var xArg = new OutputArgument();
var yArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xF08E42BFA46BDFF8, // _GET_WAYPOINT_POSITION
  xArg, // float* x
  yArg // float* y
);
float x = xArg.GetResult<float>();
float y = yArg.GetResult<float>();
All MAP natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.