Waypoint

How can I know my distance from me to the waypoint
Or
How can i know the coords of waypoint?

Use these functions below

GET_PED_WAYPOINT_DISTANCE #
// 0xE6A877C64CAF1BC5 0x084B35B0
// GetPedWaypointDistance
float GET_PED_WAYPOINT_DISTANCE(Any p0);

or

GET_FIRST_BLIP_INFO_ID #
// 0x1BEDE233E6CD2A1F 0x64C0273D
// GetFirstBlipInfoId
Blip GET_FIRST_BLIP_INFO_ID(int blipSprite);
8 = waypoint

GET_BLIP_COORDS #
// 0x586AFE3FF72D996E 0xEF6FF47B
// GetBlipCoords
Vector3 GET_BLIP_COORDS(Blip blip);

Feel free to check out the FiveM native reference:
https://runtime.fivem.net/doc/reference.html

How can i use this: GetPedWaypointDistance(Any p0)
What is p0?
Thanks you

p0 is a ped, supply the function with a ped like GetPlayerPed(-1)

1 Like