DH | Speedcameras
Framework Compatibility
DH Speedcameras works for TMC Only
Installation
Download DHSpeedcameras from your keymaster
Drag the file into your resources folder and "ensure DHSpeedcameras" in your server.cfg
Config File
{id = 1, cameraCoords = vector3(2599.6789, 3098.0463, 47.248397), maxSpeed = 20, fine = 50, radius = 20.0},
Add your speed cameras around the map. using this format. make sure ID is unique for every camera.
Radial Menu Integrations
Add the following code to your police sub menus in radialmenu/config.lua
'police:createSpeedZone', 'police:deleteSpeedZones', 'police:checkFines'Add the following code below the other police menus. For example below this code:
['police:search'] = {
title = "Search",
icon = "magnifying-glass",
iconCategory = 'solid',
functionName = "police:client:SearchPlayer"
},Add this following code under police:search:
['police:createSpeedZone'] = {
title = "Create Speed Zone",
icon = "gauge",
iconCategory = 'solid',
functionName = "Speedzone:client:createZone",
enableMenu = function()
return not isDead
end,
},
['police:deleteSpeedZones'] = {
title = "Delete Speed Zones",
icon = "trash",
iconCategory = 'solid',
functionName = "Speedcamera:client:DeleteSpeedZone",
enableMenu = function()
return not isDead
end,
},
['police:checkFines'] = {
title = "Outstanding Fines",
icon = "steering-wheel",
iconCategory = 'solid',
functionName = "Speedcamera:client:FineMenu",
enableMenu = function()
return not isDead
end,
},
SQL
Implmenet this SQL into your database.
CREATE TABLE speedingfines (
id INT AUTO_INCREMENT PRIMARY KEY,
csn VARCHAR(255),
plate VARCHAR(20),
fine INT,
speed INT DEFAULT 0
);Last updated