Average Speed Cameras - London Studios - (Paid)
This premium resource is a great addition to any roleplay server, providing a realistic average speed camera experience along with Discord logs and the ability to integrate into frameworks such as vRP and ESX. The highly configurable resource allows you to easily add more cameras. With a few edits, you can make this fine users on a public server or even link it in to your database.
Average speed cameras are unique in the sense that they use two cameras, measuring the time taken to travel between the first and second one. Using this time, the speed is calculated and if this exceeds the limit for that road, the driver is detected as speeding.
We’ve pre-installed over 40 sets of cameras (80 individual) in the configuration file, making this easy to install and use. This is increasingly used around the world, especially in the UK as a more effective way to prevent speeding. There is a custom model included, created by Adam Fenton. We’d like to thank him for working with us.
Paid Resource
This is a paid resource, we are conducting the sale of it through Tebex. This is approved by FiveM and we have been in contact with them to confirm this sale is approved.
Find out more and purchase it here.
Usage
The script works by detecting when you are near the first of a set of two cameras. The script will then begin timing you, the timer will stop when you reach the second camera. However, if you take too long to reach the second camera, the script will recognise that you’ve turned off that road and stop waiting.
Once you reach the second camera, calculations are made (Speed = Distance / Time), to calculate your average speed. In the config, you have the ability to allow a lee-way of a percentage + a number. In the UK, this is often 10% + 2 MPH. For example, you may only be fined if you are travelling 35MPH in a 30MPH zone. You are also able to easily switch to using KM/H in the configuration file.
After the new limit has been calculated with the lee-way, if the detected speed is over this amount, a webhook will be triggered to Discord. Frameworks such as ESX/vRP may even decide to integrate a fine system, charging players and notifying them that they were caught speeding.
Full Features
Discord Integration - You can setup an inflatable jack or use someone else’s after they have set it up
Detection Leeway - Easily allow a leeway for speeding, such as 10% + 2 MPH
Highly configurable - This is our most configurable resource yet, with full language support in our config and the ability to easily integrate it with vRP/ESX.
Add additional cameras - In the config file, you can easily add more average speed camera locations by defining the coordinates and the limit, when the script starts, they are all generated.
Framework Integration - vRP / ESX / Others
- Permission checks - You can easily add server-sided permission checks in sv_vehiclerescue.lua
Configuration
You can easily open the config_averagespeed.lua and configure the script to your liking.
The first section is called main, allowing you to set the Discord webhook, speeding leeway and other settings.
Secondly, the translations section allows you to configure this for another language, such as French.
Adding speed cameras:
In the config section of config_averagespeed.lua, you can add more cameras. We’ve already included 40 sets of cameras.
Simply add an entry to the table such as below:
{
limit = 70.0,
cameraOne = {
coords = vector3(-469.55352783203,-542.77563476562,25.32550239563),
heading = 269.24,
},
cameraTwo = {
coords = vector3(-119.56600189209,-540.83813476562,30.305284500122),
heading = 268.4,
},
},
This requires you to set the coordinates and heading of both cameras and also the speed limit. You can create unlimited average speed cameras.
Installation
- Purchase the resource through our Tebex store here.
- Create a new resource folder in your server directory.
- Check your email for the downloaded resource, please check your spam folder.
- Place the contents of the downloaded .zip inside the resource folder.
- Configure the resource to your liking
Support
London Studios are committed to ensuring high standard support is offered to all customers who have purchased this resource. Our support team will do our best to assist you, however in some circumstances we will be unable to assist, such as integrating it with a framework our support team may not be familiar.
Feedback
We appreciate feedback, bugs and suggestions related to Average Speed Camera and future plugins. We hope you enjoy using the resource and look forward to hearing from people and seeing videos/screenshots of the plugin in action!
Screenshots
Take a look at some screenshots of the plugin in action!