[FREE] Speed Camera Hacking [WIP]

Credits:
Original Creator: P4NDAzzGaming GitHub - P4NDAzzGaming/esx_speedcamera
Secondary: Tom Osborne GitHub - tom-osborne/qb-speedcameras: A simple, optimised and configurable speed camera script.
And now it’s my turn! Thank you for downloading this script, and I hope you have fun with it! Feel free to expand and customize it.

Features:

This script adds a speed camera system with fining enabled by default.

My modifications introduce an option to disable the speed cameras through bl_ui minigames GitHub - Byte-Labs-Studio/bl_ui: FiveM resource which include a variety of UI components..

Speed cameras are on by default. Players can disable them by completing a mission that involves interacting with props across the map.
The mission includes randomly selected minigames from bl_ui.
Upon loading in, speed cameras are active.
Players can approach a ped and interact with them to start the mission.
Red blips will appear on the map, guiding players to the props they need to interact with.
The mission involves completing 3-5 random bl_ui minigames.
Once the mission is completed, speed cameras will be disabled for that player until the next server or resource restart.
Minigames:
The mission uses the following randomly selected minigames:

local minigames = { – in the disablecam.lua
function() return exports[‘bl_ui’]:CircleProgress(1, 50) end,
function() return exports[‘bl_ui’]:Progress(1, 50) end,
function() return exports[‘bl_ui’]:KeySpam(1, 50) end,
function() return exports[‘bl_ui’]:KeyCircle(1, 50, 3) end,
function() return exports[‘bl_ui’]:NumberSlide(1, 50, 3) end,
function() return exports[‘bl_ui’]:RapidLines(1, 50, 5) end,
function() return exports[‘bl_ui’]:CircleShake(1, 50, 3) end
}
Prop Locations:
Interacting with props at various satellite points across the map:

local satellitePoints = { – in the disablecam.lua
tp 213.05, -998.62, 28.29,
tp -144.89, -419.76, 33.39),
tp -803.76, -96.02, 36.59),
tp -1087.07, -1325.5, 4.23),
tp 731.56, 146.07, 79.75),
tp 297.39, -355.49, 44.15),
tp -22.57, 45.98, 71.24),
tp -1443.39, -782.83, 22.47),
tp -968.66, -177.75, 36.8),
tp -911.98, -100.89, 37.23),
tp -1008.41, 303.83, 67.07),
tp -468.56, -722.48, 31.73),
tp 13.7, -790.34, 30.77),
tp 109.42, -820.83, 30.31)
}
Ped Location: The ped to start the mission is located at:
local pedCoords = tp 196.95, -1493.81, 28.14

In-game messages can be edited at the following lines in the disablecam.lua
73, 134, 181, 196, 205, 214

Also did not intend for this but if you go back to ped and do it over again it will enable the traffic cameras, not intentional but hey I can claim I did it because I wanted a way for players to practice minigames right ! right…? You can basically toggle it on and off, might fix might not, also I know im lazy for not updating the notify in main.lua, over this.

Dependency

4 Likes

nice work

1 Like

Thank you !!! :slight_smile: <3

Hello there.

I made a push request on your GitHub repo as you seem not to know how to use GitHub properly.

I also prefer to tell you that your post is readable yes, but really not comfortable.
Here’s the readme I gave you in my push request, which you can also use in your post here (with the link to your GitHub repo);

For the video, i used streamable but YouTube is better if you don’t pay. :stuck_out_tongue:

Click me to see beautiful topic :O
# 🛰️ Mercy_21's Public Speed Cameras — v1.0

### ⬇️ Download
- https://github.com/Mercy-Public/mercy_21_public_speedcameras

### 📹 Previews
https://streamable.com/e/9xnkmv?loop=0&muted=1
- Video stuck on loading? Here's the URL : [https://streamable.com/9xnkmv](https://streamable.com/9xnkmv)

### ⭐ Features
- This script adds a speed camera system with fining enabled by default.
- This script also adds an option to disable them through `bl_ui` minigames.
- In roleplay terms, you'll send a virus on a satellite, with some physical access points around LS.

### 📃 You'll need this :
- [ox_lib](https://github.com/overextended/ox_lib/releases/latest)
- [bl_ui](https://github.com/Byte-Labs-Studio/bl_ui)
- qbCore

### 👨🏻‍💻 How to install
- Download our source code / latest release.
- Put it on your server.
- Put the resource name on your `server.cfg` or `resources.cfg` file

### 👨🏻‍💻 How to configure
- You can edit in-game messages in lines 73, 134, 181, 196, 205, 214 of the `disablecam.lua`.
- Sending virus will only work if user won one of them randomly picked `bl_ui` minigames.
```lua
local minigames = {-- in the disablecam.lua
    function() return exports['bl_ui']:CircleProgress(1, 50) end,
    function() return exports['bl_ui']:Progress(1, 50) end,
    function() return exports['bl_ui']:KeySpam(1, 50) end,
    function() return exports['bl_ui']:KeyCircle(1, 50, 3) end,
    function() return exports['bl_ui']:NumberSlide(1, 50, 3) end,
    function() return exports['bl_ui']:RapidLines(1, 50, 5) end,
    function() return exports['bl_ui']:CircleShake(1, 50, 3) end
}
```

Physical access points for sending viruses to satellite :
```lua
local satellitePoints = { -- in the disablecam.lua
    vector3(213.05, -998.62, 28.29),
    vector3(-144.89, -419.76, 33.39),
    vector3(-803.76, -96.02, 36.59),
    vector3(-1087.07, -1325.5, 4.23),
    vector3(731.56, 146.07, 79.75),
    vector3(297.39, -355.49, 44.15),
    vector3(-22.57, 45.98, 71.24),
    vector3(-1443.39, -782.83, 22.47),
    vector3(-968.66, -177.75, 36.8),
    vector3(-911.98, -100.89, 37.23),
    vector3(-1008.41, 303.83, 67.07),
    vector3(-468.56, -722.48, 31.73),
    vector3(13.7, -790.34, 30.77),
    vector3(109.42, -820.83, 30.31)
}
```

### Credits :
- mercy_public / turtle8675309 (actual script)
- P4NDAzzGaming (Origian Creator of [esx_speedcameras](https://github.com/P4NDAzzGaming/esx_speedcamera))
- Tom Osborne (Creator of [qb-speedcameras](https://github.com/tom-osborne/qb-speedcameras))

You can do what you like with it, but at least it’s clean.

King regards,
Pokameni