Configuration
Below we have explained some of the key features found in our Config file within the Speed Camera Script.
Framework
Speed Detection Characteristics
Authorised Licenses
Quick Speed Settings
Keybindings
Vehicle Configuration
Config File before edits
Config = {}
Config.Debug = false
Config.ShowSpeedZoneBlips = false -- Set to false to disable map blips
Config.Framework = 'auto' -- 'auto', 'esx', 'qbcore', 'standalone'
Config.SpeedReading = 'mph' -- Options: 'kph' or 'mph'
Config.Currency = "£"
Config.IgnoredVehicles = {
[`police`] = true,
[`police2`] = true,
[`police3`] = true,
[`fbi`] = true,
[`ambulance`] = true,
[`firetruk`] = true
}
Config.SpeedOptions = {
10, 20, 30, 40, 50, 60, 70 -- Feel free to add/remove speeds here
}
Config.Billing = {
enabled = true,
method = 'bank', -- 'bank', 'cash', 'both'
checkFundsFirst = true, -- Check if player has enough money before allowing charging
notifications = {
enabled = true, -- Enable/disable billing notifications
showOnComplete = true, -- Show notification when charging completes
showOnCancel = true, -- Show notification when charging is cancelled
showPaymentMethod = true -- Show which payment method was used (bank/cash)
}
}
-- Notification settings --
Config.Notifications = {
type = 'qbcore', -- 'chat', 'mythic', 'ox_lib', 'esx', 'qbcore', 'okokNotify', 'pNotify', 'NotificationV2', 'custom'
position = 'top-right', -- Position for certain notification systems
duration = 5000, -- Duration in milliseconds (5 seconds)
sound = true, -- Play sound with notifications (if supported)
-- Notification filtering - only show important notifications
showLevel = 'important', -- 'all', 'important', 'critical'
-- 'all' = Show everything (inform, success, error, warning)
-- 'important' = Show success, error, warning (skip basic info)
-- 'critical' = Show only error and warning (critical issues only)
}
-- Placement Menu Options --
Config.AllowedLicenses = {
["license:############"] = true, -- Set to true to allow
["license:############"] = false, -- Set to false to disable
["license:############"] = false,
}
Config.EnableAutoEditDetection = true
Config.AutoEditDistance = 2.0
Config.Buttons = {
MoveForwards = 111,
MoveBackwards = 112,
MoveLeft = 108,
MoveRight = 109,
MoveUp = 172,
MoveDown = 173,
RotateForwards = 117,
RotateBackwards = 118,
RotateLeft = 175,
RotateRight = 174,
SnapToGround = 143,
SaveProp = 176,
CycleModel = 246,
}
Last updated
