This is the very first script I have ever created. I am a complete beginner and you will not find any best practices or clean efficient code here lol. I also know there is a million different variations of this type of script.
My primary reason for this showcase is to maybe get some feedback or tips if anyone has the time to try the script out.
Features
- Easily create and configure new speed cameras
- Shows the car and number plate
- Audio cue for when camera is triggered
- Subtle white flash to imitate camera flash
- Does not trigger when in emergency vehicles (this can be turned on or off)
I thought the best way to learn was to take a free script and read through it, try to understand it then have a go at creating it myself. I did this using this free script from @Re1ease1, so thank you to him for providing the source code for me to learn!
Hope I can learn many more things and become a better developer!
https://github.com/4loop-fivem/speed-camera