How to get coords of an object in fiveM

How do I get coordinates of specific object in FiveM? I’m trying to create a script for shop robbery and the first step would be actually getting the position of the cash register. I’m fairly new to scripting so just trying to learn as much as I can.

Basically what I’m trying to do is make it so when I press tab (when it shows eye) it has an option to rob the cash register.

Either use PolyZone, or define the coordinates in whatever “target” script you have; as for actual coordinates, you’ll need to find and use some kind of debug or dev menu - there’s plenty online, find one you like most.

1 Like

I’ll try polyzones, btw is there a way for me to create qbcore interactions for polyzones? (when I press ALT and it shows that eye)

That’s exactly what PolyZone is intended for, well one of those things anyway; make sure to read the docs!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.