London Studios Documentation
Our StoreSupport PanelYouTube Channel
  • General
    • Documentation
    • Resource Support
    • Downloading Resources
    • Installing Resources
    • Resource Transfers
    • Common Errors
    • Translating Resources
    • Inventory Icons
    • Resource Ideas
    • Integration Requests
  • Vehicles
    • American Rearmount Ladder
      • Setting up
      • Anticheat Issues
    • Advanced Recovery Truck
      • Setting up
      • Anticheat Issues
    • SWAT Vehicle
      • Setting up
      • Anticheat Issues
    • Police Water Cannon
      • Setting up
      • Anticheat Issues
    • British Ladder Truck
      • Setting up
      • Anticheat Issues
    • Tiller Ladder Truck
      • Setting up
      • Anticheat Issues
    • Scissor Lift
      • Setting up
      • Anticheat Issues
    • Car Transporter
      • Setting up
      • Anticheat Issues
    • Water Carrier & Command Unit
      • Setting up
      • Anticheat Issues
    • Water Spray Unit
      • Setting up
      • Anticheat Issues
    • Snow Loader Pack
      • Setting up
      • Anticheat Issues
  • Resources
    • Bike Hire
      • Using the resource
      • Configuring the resource
      • Configuring locations
    • Bomb Disposal Robot (EOD)
      • EOD - How to use
      • EOD - Permissions Check
      • OX_Inventory Integration
      • Other Integrations
    • Car Sale Sign
      • Installation Video
      • Using the resource
      • Configuring the resource
      • Configuring permissions
      • Item Support
    • Congestion Charge
      • Configuring the resource
      • Modifying Zones & Adding Cameras
    • Custom Vinewood Sign
      • Installation Video
      • Sign Setup
    • Decontamination Tent
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Directional Spikes
      • Using the resource
      • Configuring the resource
    • Emergency Call Points
      • Using the resource
      • Configuring the resource
    • Fire Supply Line [v2]
      • Using the resource
      • Configuring Fire Supply Line
    • Fire Tools [v2]
      • Using the resource
      • Configuration
      • Permissions, Notifications and Items
      • Item Support
    • Helicopter Rescue
      • Using the resource
      • Configuring the resource
      • Configuring the permissions
      • Configuring locations
    • Mobile Spike
      • Setting up vehicles
      • Misc Configuration Values
      • Permission Checks
      • OX_Inventory Integration
      • Other Integrations
    • Police Grappler
      • Setting up vehicles
      • Misc Configuration Values
      • Permissions, Notifications & Items
      • Item Support
    • Police Shields
      • Using the resource
      • Permissions, Notifications & Items
      • Item Support
    • Rope Rescue Tripod & Basket
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Rescue Cushion
      • Using the resource
      • Permissions, Notifications & Items
      • Other Integrations
    • Smart Speed Signs
      • Configuring the resource
      • Adding new locations
    • Smart Airbags
      • Using this resource
      • Permissions & Notifications
    • Smart Bollards
      • Installation Video
      • Configuring the resource
      • Setting up a new set
    • Smart Clamp
      • Permissions, Notifications and Items
      • Item Support
      • Exports and Events
    • Smart Defib
      • Using the resource
      • Defib locations
      • Framework support
      • Setting up blips
      • Chance of success
      • Sound settings
      • Keybind configuration
      • Automatic reset
      • Custom Death Scripts
      • OX_Inventory Integration
      • Other Integrations
    • Smart Drone
      • Using the resource
      • Permission Checks, Notifications & Items
      • Keybinds
      • Item Support
      • Other Integrations
    • Smart Fires
      • Installation Video
      • Putting out fires
      • Fire Alerts
      • Remove Fires Automatically
      • Custom Notifications
      • Automatic Fires
        • Enabling automatic fires
        • Job / Permission Check
        • Adding locations
        • Automatic Fire Chances
        • Other automatic fire settings
      • Commands
      • Command permission checks
      • Editing fire types
      • Editing smoke types
      • Misc configuration values
      • Setting up weapons
      • Area of patrol settings
      • Clock on system
      • Lighter Item & Command
      • Server exports and events
      • Discord logging
      • Society Payments
    • Smart Hose [v2]
      • Using the resource
      • Configuring Smart Hose
    • Smart Matrix
      • Install & Configuration Video
      • OX_Inventory Integration
      • Other Integrations
    • Smart Motorways
      • Using the resource
      • Configuring the resource
    • Smart Signs
      • Configuring the resource
      • Configuring the permissions
    • Smart Speed Cameras
      • Configuring the resource
      • Adding new cameras
    • Smart Taser
      • Using the resource
      • Configuration
      • OX_Inventory Integration
      • Other Integrations
    • Smart Vehicle
      • Compatible Vehicles
      • Free Developer Copy
      • Permission Checks
      • Using a Smart Vehicle
      • Informations for Developers
      • Vehicle Control Menus
    • Police Tracker
      • Setting up vehicles
      • Resource Configuration & Usage
      • Item Support
    • Throw Bag
      • Resource Usage
      • OX_Inventory Integration
      • Other Integrations
    • Vehicle Rescue
      • Using the Resource
      • Permissions, Notifications & Items
      • Copy of Item Support
    • Water Monitor
      • Using the resource
      • Copy of Permissions, Notifications & Items
      • Copy of Item Support
    • Weapon Lanyard
      • Setting up weapons
      • Using the resource
      • Setting up clothing / EUP
Powered by GitBook
On this page
  • Developer Mode
  • addPercentage & addLimit
  • useKmh
  • exemptVehicleClasses & exemptVehicleNames
  • Exempt Emergency Lights
  • Exempt Jobs & Permissions
  • Blip Modes
  • Notifications
  • Fines
  • Translations

Was this helpful?

  1. Resources
  2. Smart Speed Cameras

Configuring the resource

We've made it simple to configure Smart Speed Cameras

We've made the config.lua file for Smart Speed Cameras as simple as possible so it works straight out of the box for you. However, there are still some values you might want to change so we'll talk you through them in this documentation.

Please note that the resource is named Average Speed Cameras on Keymaster / Cfx Portal as we have no way of changing this. Please make sure the resource is named SmartSpeedCameras.

Developer Mode

This is relevant for adding new cameras on the next page, so enable that if you're planning on adding new locations (but remember to turn it off again after).

Developer mode also enables blips for the cameras around the map.

addPercentage & addLimit

        addPercentage = 10.0, 

        -- This allows an addition of 2MPH to the speed limit before classing the driver as speeding, set to 0 to disable
        addLimit = 2.0,

This allows you to add a % lee-way for speeding drivers. For example, if you set this to 10.0 and you had a speed camera with a limit of 30mph, drivers would only activate the camera when going faster than 33mph, allowing a 10% leeway of 3mph.

addLimit allows you to add a certain amount of mph or kph in addition to the 10% lee-way. For example, the rule across your server may be a 10% + 2 rule, so set addLimit to 2.

useKmh

This allows you to switch the resource to using kmh. By default, all of the pre-configured cameras in the two .json files are in MPH, so you may want to manually edit this for your region.

exemptVehicleClasses & exemptVehicleNames

This allows you to set classes of vehicle, eg, police (18) that are exempt from activating the speed cameras. You can also specify individual vehicle names if you prefer.

Exempt Emergency Lights

This configuration value allows you to exempt vehicles if their emergency lights/sirens are switched on. Cameras will still flash, however no fines will be issued to the driver.

Exempt Jobs & Permissions

The Exemptions part of the configuration file allows you to setup exemptions for Ace Permissions, ESX, vRP, QBCore and QBX.

Exemptions = {
            EnableExemptions = true,
            AcePermissions = {
                Enabled = false,
                Permissions = {"tracker.use", "tracker.police"}
                -- This enables ace permissions on the starchaser
            },
            -- We've added ESX integration. All you need to do is enable it below and configure which jobs can use the command
            ESX = {
                Enabled = true,
                CheckJob = {
                    Enabled = false, -- Enable this to use ESX job check
                    Jobs = {"police"} -- A user can have any of the following jobs, allowing you to add multiple
                }
            },
            -- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
            vRP = {
                Enabled = false,
                CheckGroup = {
                    Enabled = false, -- Enable this to use vRP group check
                    Groups = {"police"}, -- A user can have any of the following groups, meaning you can add different jobs
                },
                CheckPermission = {
                    Enabled = false, -- Enable this to use vRP permission check
                    Permissions = {"police"} -- A user can have any of the following permissions, allowing you to add multiple
                },
            },
            -- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
            QBCore = {
                Enabled = false,
                CheckJob = {
                    Enabled = false, -- Enable this to use QBCore job check
                    Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                },
                CheckPermission = {
                    Enabled = false, -- Enable this to use QBCore permission check
                    Permissions = {"police"}, -- A user can have any of the following permissions, allowing you to add multiple
                },
            },
            QBX = {
                Enabled = false,
                CheckJob = {
                    Enabled = false, -- Enable this to use QBX job check
                    Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
                }
            },
        }

Blip Modes

Here you are able to enable blips around the map for both types of cameras. You can then set whether you want these blips to be short range and also set the scale of the blip. This may be best for developers who are adding more camera locations around the map to visualise the placement.

Notifications

Here you are able to adjust the various settings for notifications. We support notifications for QBCore, ESX, vRP, okokNotify and Mythic Notify.

Fines

Here you are able to adjust the various settings for fines. You are able to set the minimum and maximum fine amount for cameras, in which a random number will be selected each time.

We've also enabled society integration for the following:

  • QB Management

  • qbBossMenu

  • ESXAddonAccount

  • fdBanking

  • qb Banking

  • okok Billing

Below these you are able to select the account name, to have the money paid into the society of your choice.

Translations

Here you are able to translate the resource into another language.

PreviousSmart Speed CamerasNextAdding new cameras

Last updated 4 months ago

Was this helpful?