From 976f4b1c43788072c853b1ed298e50293b73759f Mon Sep 17 00:00:00 2001 From: Outsider <87246847+outsider31000@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:32:49 +0000 Subject: [PATCH] Update _0xF08E42BFA46BDFF8.json add _GET_WAYPOINT_POSITION --- namespaces/MAP/_0xF08E42BFA46BDFF8.json | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/namespaces/MAP/_0xF08E42BFA46BDFF8.json b/namespaces/MAP/_0xF08E42BFA46BDFF8.json index 81061aa7..a9969b01 100644 --- a/namespaces/MAP/_0xF08E42BFA46BDFF8.json +++ b/namespaces/MAP/_0xF08E42BFA46BDFF8.json @@ -1,20 +1,26 @@ { "0xF08E42BFA46BDFF8": { - "name": "_0xF08E42BFA46BDFF8", - "comment": "", + "name": "_GET_WAYPOINT_POSITION", + "comment": "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.", "params": [ { - "type": "Any", - "name": "p0" + "type": "float*", + "name": "x" }, { - "type": "Any", - "name": "p1" + "type": "float*", + "name": "y" } ], - "return_type": "BOOL", + "return_type": "Any", "build": "1207", - "examples": [], - "apiset": "" + "examples": [ + { + "lang": "lua", + "code": "local x,y = _GET_WAYPOINT_POSITION(Citizen.PointerValueFloat(),Citizen.PointerValueFloat())" + } + + ], + "apiset": "client" } } \ No newline at end of file