Position problems


#1

Been trying to figure this out for awhile, but the circles you can interact with are never on the floor, they float.

Example: https://i.imgur.com/DbrRo6M.png

This is the positions I am using -
Pos = { x = 480.000, y = -1326.000, z = 30.000 },

I’ve been using the chemical toxin menu to grab the co-ords.

Anyway, some guidance would be appreciated because I’m out of ideas at this point lol.

Cheers.


#2

Change the Z by around 10, go from there :-1:


#3

There’s a native to get ground elevation at any coordinate. I do not know if this is in the current fivem’s client natives.

GET_GROUND_Z_FOR_3D_COORD
http://www.dev-c.com/nativedb/func/info/c906a7dab05c8d2b