FiveM Speedcam/Radar Script by London Studios adds average speed cameras to your roleplay server. Two cameras measure the time a vehicle needs between them; from that time the script calculates the speed, and a driver above the road’s limit is detected as speeding. This type of check is used more and more around the world, especially in the UK.
Over 40 sets of cameras (80 individual cameras) are pre-installed in the configuration file, and a custom camera model by Adam Fenton is included. With a few edits you can fine players on a public server or link the detections to your database.
Features
- Discord integration: speeding detections can be logged to Discord.
- Detection leeway: allow a margin before a detection, such as 10% + 2 MPH.
- Highly configurable: full language support in the config and simple integration with vRP or ESX.
- Add more cameras: define the coordinates, heading and speed limit of both cameras in the config; all cameras are generated when the script starts, with no limit on their number.
Configuration
- Everything is set in
config_averagespeed.lua. - The main section holds the Discord webhook, the speeding leeway and other settings, including the permission checks.
- The translations section lets you translate the texts into another language, such as French.
- The config section lists the cameras; 40 sets are already included, and each new entry needs the coordinates and heading of both cameras and the speed limit.
Installation
- Create a new resource folder in your server’s resources directory.
- Place the contents of the downloaded ZIP inside that folder.
- Configure
config_averagespeed.luato your liking.