[FREE] [ESX] SpeedCameras | LifePeak Scripts

LifePeak - Solutions SpeedCamera


Description
• Fully configurable
• Low ms / Very good performance
• Easy to Install
• Blacklist
• Vehicle Blacklist
• Vehicle Camera Objects

Information
• Price: Free

Tebex:
LifePeak - Scripts | [FREE] [ESX] LifePeak Scripts | SpeedCameras

Config = {}

Config.UseOldESX = false -- Set this to true if you use and older version of ESX
Config.SharedObject = 'esx:getSharedObject'

Config.Locale = "en"
Config.Billing = "none"                     -- Change your Billing System -> "esx_billing" / "okokBilling" / "okokBillingV2" / "none"
Config.BillingAmount = 5                    -- Amount per Km/H
Config.Society = "police"                   -- Billing Society / Create Speedcamera - Policejob
Config.PolicePay = true                     -- Can police officers be fined true/false
Config.CreateSpeedCamera = "spccreate"      -- Command to create a SpeedCamera
Config.DeleteSpeedCamera = "spcdelete"      -- Command to delete a SpeedCamera
Config.Radius = 10.0                        -- Set the range of the SpeedCamera
Config.Key = "X"                            -- Key for the Menu


-- Blips
Config.Blips = {
    ShowBlip = true,                        -- Speedcamera Blips on Map
    BlipName = "Speedcamera",               -- Name for Blip
    BlipScale = 0.5,
    BlipColour = 2,
    BlipSprite = 184
}


-- Speedcameras
Config.Locations = {
    [1] = {
        SpeedCameraName = "Highway Point",
        MaxKmH  = 130,
        Position = vector3(1437.810546875,752.94683837891,77.623649597168)
    },
    [2] = {
        SpeedCameraName = "Highway 23 South",
        MaxKmH  = 130,
        Position = vector3(-2485.4990234375,-218.81741333008,17.860759735107)
    }
}

-- Blacklist

Config.BlacklistVehicle = {
    "police",
    "police2",
    "ambulance"
}

Config.BlacklistJob = {
    "police",
    "ambulance"
}

Download:
LifePeak Scripts / lp_speedcamera · GitLab

Code is accessible Yes
Subscription-based No
Lines (approximately) 200
Requirements ESX
Support No
6 Likes

Don’t see a GitHub or downloadable file anywhere. What should be with free resources.

That you do not see the tebex link?

Free scripts have to be downloadable from the forum directly

Do you have GitHub? Can’t download

Ihre Zahlung wurde abgelehnt. Bitte versuchen Sie es erneut oder verwenden Sie eine andere Zahlungsmethode.

Hey,

I’m sorry. This should not happen. :sweat_smile: You do not need to specify a payment method in a free script.
Just try again or use the repository I linked now in the original post !

Sorry to break it you but free releases must have a direct download.

  • Free releases: Releases that are released for free must contain a direct download and may not be Escrow protected, you may include a Tebex link but it may not be the only download.

Hey there!

Sorry for that. I added a download link to the original post :smile:

Have fun with the script :+1:

1 Like

Hey,

We changed the Lang files just download again, and The languages should fixed.

1 Like

Free resource must have instant download link :slight_smile:

A free resource must be uploaded to github!
tebex is not allowed for free resources.

Hey,

Just look there is an Instant download link (Link to GitLab)

Is good that you have added a link, however, you can not download anything there :slight_smile:

nevermind i find the download button on there, sry :slight_smile:

It does’t remove anything ,maybe something wrong?

On Server Startup the console shows this:
lp_speedcamera-main/client/main.lua:53: attempt to index a nil value (field ‘job’)

If I restart the script it works fine but it doesn’t start on it’s own on server start…
what can I do?

Is there anyway to ensure ESX is fully loaded before the script starts? I think thats the Problem…

Ok I fixed it for my own fittings…

I commented out the first two

local job = ESX.GetPlayerData().job.name

like this:

for k,v in pairs(Config.Locations) do
–local job = ESX.GetPlayerData().job.name
local camname = v.SpeedCameraName

and this:

for k,v in pairs(SpeedCameras) do
–local job = ESX.GetPlayerData().job.name
local shootspeed = speed -v.MaxKmH

this disables the checks on startup wich means police have to pay too no matter whats set in the config. the Resource starts now on server startup perfect :slight_smile: . If u want to place a speedcam it still checks if u’re police.

I also added this:

AnimpostfxPlay(‘PPOrange’, 200, false)

behind these lines:

ESX.ShowNotification(_U(“SpeedShoot”,v.SpeedCameraName,math.floor(shootspeed)))

like this:

ESX.ShowNotification(_U(“SpeedShoot”,v.SpeedCameraName,math.floor(shootspeed)))
AnimpostfxPlay(‘PPOrange’, 200, false)
SendBill(camname, speed)
Citizen.SetTimeout(10000, function()
isShoot = false

to get a flash effect:

Wenn jemand Hilfe braucht, ich kann’s auch gern auf Deutsch erklären. :wink:

Greetings,
Mikrolai.

1 Like

Hey!

Thanks for contributing and sharing your modifications at the script. I will try to spend some time tomorrow to fix the bug and I will check if we can merge your modifications into the project :smile:

Edit:
Bug is fixed. I pushed an update to the gitlab repository :+1:

2 Likes

nicuuu!!! btw… I love this script! :slight_smile:

update works perfect!!! (I’ve increased the distance from 10 to 25 but thats just fine tuning and not for everybody ok)

1 Like