Skip to content

Commit

Permalink
Update _0xF08E42BFA46BDFF8.json
Browse files Browse the repository at this point in the history
add _GET_WAYPOINT_POSITION
  • Loading branch information
outsider31000 committed Jan 6, 2025
1 parent 918a82b commit 976f4b1
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions namespaces/MAP/_0xF08E42BFA46BDFF8.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 976f4b1

Please sign in to comment.