[Release] ESX_SPEEDCAMERA (60, 80 & 120 ZONES, BILLING & BLACKLISTED VEHICLES)

hello mates,thank you for this really nice script @P4NDA_GamingV2 ,it just doesn’t play the camera sound for me .
I have put the ogg in the :
InteractSound\client\html\sounds folder
and put the line
files({
‘client/html/index.html’,
‘client/html/sounds/speedcamera.ogg’,
on __resource.lua of the InteractSound
Also i start InteractSound first of esx_speedcamera (i don’t know if starting order matters)
What am i doing wrong?
Thank you in advance for your nice share

Please share your __resource.lua for InteractSound.


– InteractSound by Scott
– Verstion: v0.0.1

– Manifest Version
resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

– Client Scripts
client_script ‘client/main.lua’

– Server Scripts
server_script ‘server/main.lua’

– NUI Default Page
ui_page(‘client/html/index.html’)

– Files needed for NUI
– DON’T FORGET TO ADD THE SOUND FILES TO THIS!
files({
‘client/html/index.html’,
– Begin Sound Files Here…
– client/html/sounds/ … .ogg
‘client/html/sounds/speedcamera.ogg’,
‘client/html/sounds/crash01.ogg’,
‘client/html/sounds/lockpick.ogg’,
})

Hey, I Found a bug when i just drive by the speed cam it just give me a fine

Nice script! I love the all of the configurable options available.
Now, I’m having an issue where when a speed camera is passed, the police notification doesn’t actually notify the police. I’m using esx_phone3 and have confirmed that this script its started AFTER the phone script. There isn’t a notification in the server console that the police were called. I have other scripts that call the police, and they work fine using the same function that you use. I’m stumped, honestly.

Hi, @BreadForMen

Are you sure that your police script is using “society_police”, it might use “society_policejob” or something similar, make sure it’s the correct one and then modify it in the script.

Best regards
– P4NDA

This is my esx_policejob\server\main.lua:9, 10

TriggerEvent('esx_phone:registerNumber', 'police', _U('alert_police'), true, true)
TriggerEvent('esx_society:registerSociety', 'police', 'Police', 'society_police', 'society_police', 'society_police', {type = 'public'})

Have you modified anything inside of the script, as default it is working.

As default, you do not. This has been tested, make sure you’re using my latest version.

Is anyone having an issue where it is not recognizing blacklisted vehicles. It is able to to read a few of the cars but doesn’t recognize some of them.

Hello, good, I’m quite new in lua but I want to know if you can help me with this, I want the script to recognize me the work of the person and if they are police and ambulances do nothing, maybe one can help me. Thanks! :slight_smile:

https://gyazo.com/e7fee4efb40c0e89a1e1977bd4c5917e

same for me , doesn’t make any sound =(
Any fix ?

@P4NDA_GamingV2 My server is using addon police vehicles and im not able to black list them.
Can you make a option for triggers depending on jobs ? so for example all players who are police or ems get blacklisted for trigger but everything else gets a fine?

Will make it configurable.

There is Nothing Wrong About the sound…

@P4NDA_GamingV2 Made a pr on your Github.

hello, thanks for this awesome script !

when i’m adding my vehicles in the blacklisted vehicle it don’t work, the vehicle are addons vehicle and it look like this: https://i.imgur.com/XNw9Fdz.png

can you help me please?

I’m not using any custom vehicles so for me everything works (as default), someone in this thread wrote that you won’t be able to add custom vehicles with the same type of syntax.

Sorry!

Will take a look at it! Thanks.

Custom vehicle on my modification works fine. I use model name So basically the spawn name. :smiley:

Np :slight_smile: