LS Development is a new group, working to make quality scripts for FiveM servers. This free script release contains a script in which you can config a teleporter, to teleport you to a desired location. This script is highly customizable and easy to use.
Changelog
1.1.0
-Markers don’t render when you get more than 100 units away from them.
-Optimized the code to use vector3 objects instead of tables.
1.2.0
-Markers don’t use GetDistanceBetweenCoords(), and now just subtracts the vectors.
Ohh okay. I used to play a server with them, and when I was making my server I couldn’t find anything like it. Looked again and still couldn’t so I just made one lol
Thank you guys for feedback! This is my first script I actually made public and appreciate you guys trying to be nice. No need to argue lol. This might get updated eventually to have more stuff, and more scripts will definitely be released in the future.
“Quality” isn’t a word I’d use for this script. First of all you’re drawing the markers regardless of if the player can see the marker or not. That is terrible for performance. Also you’re using tables to store vector values instead of… you know, vectors. And thirdly you’re using VDist2 which is again not very performant when you could be using vector math instead.
Good job on takin the feedback and improving it. One thing, the distance check to draw the marker you’re using GetDistanceBetweenCoords which is slow, but when checking if the player is in the marker you’re using vector math. So probably just update the first one to use vector math instead of the slow distance check native.
So replace
if GetDistanceBetweenCoords(playerCoord, loc.pos, false) < 100 then