_GET_WAYPOINT_POSITION
Writes the X and Y of the player's map waypoint into x and y, returning true if a waypoint is set.
Signature
BOOL _GET_WAYPOINT_POSITION(float* x, float* y); // 0xF08E42BFA46BDFF8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float* (out pointer) |
| 2 | y | float* (out pointer) |
Facts
| 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.
local result, x, y = Citizen.InvokeNative(0xF08E42BFA46BDFF8, -- _GET_WAYPOINT_POSITION
Citizen.PointerValueFloat(), -- float* x
Citizen.PointerValueFloat(), -- float* y
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, x, y] = Citizen.invokeNative("0xF08E42BFA46BDFF8", // _GET_WAYPOINT_POSITION
Citizen.pointerValueFloat(), // float* x
Citizen.pointerValueFloat(), // float* y
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related MAP natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.