Hey everyone!
I just released a small client-side FiveM script called neilo_coords. It lets you place a tennis ball (or any prop) exactly where your camera is pointing and copy the coordinates for use with ox_target or other mapping purposes.
Features:
- Toggle the tennis ball placement with
F6 or /toggleball
- Copy the exact coordinates to your clipboard with
F7 or /copycoords
- Outputs coordinates in
vector3(x, y, z) format ready for ox_target
- Lightweight and easy to use
Preview:
Installation:
- Place the folder in your
resources directory, e.g., neilo_coords
- Add
ensure neilo_coords to your server.cfg
- Restart the server or start the resource
Download: GitHub - Neilofar/neilo_coords
Let me know if you have any
suggestions, improvements, or bugs. Feedback is welcome!
15 Likes
Hey!
2 things that you can change:
- The thread can be called using a function, so only when the player uses the command, the thread will run, then you can kill the thread easily as well to avoid making it run without the use of it.
- Instead of creating your own HTML code, you can use the ox.lib to copy to the clipboard
Clipboard - Ox Lib
But nice work 
2 Likes
Badass, this will make ox target coords so much easier.
1 Like
If I use any dependencies like ox_lib it wouldn’t be standalone anymore though i think.
Yes it makes working with target scripts etc way easier
Thank you very much for the script. I have been looking for a script that works exactly like this for a long time. Thank you again.
1 Like
Simple easy to run and use, thanks. I did change it to english prompts thou 
1 Like
i wanted to make this exact script but with the garysmod tool (gun) prop lol, this is already extremely handy, saves me from hopping up on countertops and having to -1 on the height for qb-target spots. all my keybinds are used up so i like to use “physical” ox-items to trigger events like this (suggestion lol). great script.
1 Like
For # 2, it might be better this way, as it helps to generify the resource.
Oxlib isn’t leveraged otherwise.
2 Likes
Nice script, it really helps a lot !
A config with the keys would be nice !
1 Like
reassign them in keybinds
1 Like
Good work. Makes my life so much easier especially with coords and prop names. Worked right out of the box no problems.