[PAID] Speed cameras | Traffic fines

A script by XanderWP

No reviews yet.
[PAID] Speed cameras | Traffic fines main image

Full Description

Speed cameras | Traffic fines

Compatibility: ESX, NDCore, Standalone


Description

This resource is a system for accruing fines to players for exceeding the speed limit.

By default, it is compatible with ESX and NDCore, but you can use it with any framework by slightly modifying the code to suit your needs.

The resource has very flexible settings, which will allow the server owner to configure settings without knowledge of the LUA. The whole system is divided into components that are configured separately.


Watch on YouTube.com

If you want to buy
Click me (Escrow Version)


Features

  • Standalone resource
  • Works in all languages that are available in GTA
  • Default ESX Compatibility
  • Default NDCore Compatibility
  • Good optimization
  • Flexible configuration without the need for programming skills
  • A lot of coordinates are already registered and activated in the config, and there is also a list of disabled coordinates that you can enable simply by uncommenting the line in the config

Performance

0.00 ms when not work (not in car etc)

0.01 ms when in car

0.15 ms when render notify

Render Example


Config

Below is a detailed description of all parameters of the configuration file

Config.Blips -- Section with settings for markers on the map
- enabled -- Enables/Disables the display of labels on the map
- sprite -- Icon sprite
- color -- Icon color
- alpha -- Icon transparency
- scale -- Icon size (1 by default)
- hideWhenIgnore -- Hide markers when a player is in an ignored vehicle
- hideWhenNotInVehicle -- Hide markers when the player is not in a vehicle
Config.IgnoreModels -- List of vehicle models that will be ignored by radars
Config.langName -- List of all available languages of the game for the name of the labels on the map as well as for alerts above the radar
Config.Notify -- Notify around the minimap
- enabled -- Enable/Disable notification
- showSeconds -- How many seconds to show the notification
- mode -- Operating mode (in km/h or m/h)
Config.ProtectDelaySeconds -- Imposes a temporary protection on the player after the radar is triggered so that the system does not work too often if you have a lot of radars nearby
Config.CustomFineEvent -- FiveM event to integrate with your game mod
- enabled -- Enable/Disable event sending
- serverEvent -- Send event to server or send inside client locally
- eventName -- Event name

CustomFineEvent handling example

-- LUA
AddEventHandler("radars:trigger", function(fine)
    if type(fine) ~= "number" then
        print("Error fine argument type")
        return
    end
    if fine <= 0 then
        print("Error fine amount")
        return
    end
    -- Your code
end)
/**
 * JS
 */

// Local handler
on("radars:trigger", fine => {
    if(typeof fine !== "number"){
       console.error("Error fine argument type")
       return
    }
    if(fine <= 0){
        console.error("Error fine amount")
        return
    }
    // Your code
})

// Server handler
onNet("radars:trigger", fine => {
    if(typeof fine !== "number"){
       console.error("Error fine argument type")
       return
    }
    if(fine <= 0){
        console.error("Error fine amount")
        return
    }
    // Your code
})
Code accessible Config Only
Source language LUA
Subscription-based NO
Lines (approximately) ~600
Support Yes
Requirements No (Custom frameworks Support optional)
Future Updates Free