Hello guys, this is the first script that I have ever made in FiveM. Not too many people will be able to use this in their servers, but I am mainly posting this for you all to critique my first script and tell me what I did right/wrong. Constructive criticism is more than welcome, but please don’t bash me because I didn’t do something right! I plan to use this script in the game mode that I am creating. For those of you that played CrazyBobs cops and Robbers on SA:MP, this is pretty much a ripoff of the crane system. I also believe that there is something like this in the original GTA:Online.
Please look at my code and let me know if you see ways that I can be more efficient, or let me know if you see any errors/ways to break the script! I am trying to learn and I need some tips and pointers! Thanks!
DISCLAIMER: This will most likely not work with any RP scripts because it was not made using any RP frameworks. This release is for input from other scripters!
This is mainly for game modes where you are able to steal vehicles from NPC’s!
Features:
-Ability to sell vehicles at the chop shop (located outside of Sandy Shores)
-Vehicle price decreases with damage
To-do list:
-Implement all vehicles in the game
-Add a timer so you can’t sell more than one vehicle in a specified time frame
-Events where one vehicle is worth more than another
Changed the way the vehicles prices are handled, and they now are based off of the vehicle class. This means that every vehicle in the game now has a price assigned to it, even boats and helicopters (although some of the prices may be odd). Also made the notifications look more sleek.
A huge thank you to @Vespura for the excellent feedback!