Distant Siren Bug

Hi, I have a problem and was wondering whether there’s a fix or what to do about them.

Problem #1 - Distant siren bug

Firstly, whenever a player is using emergency service vehicle and is he is driving around when in close distant (Lets say 25M) I don’t hear any sirens, but when he drives away like over (25M) then I will hear sirens from the vehicle even he didnt turn them on.

I know it’s not a huge problem, but it is quite irritating and I’m sure it would be better if fixed. So I was wondering if there was a fix.

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

1 Like

Yes there is - adjust your siren/lights controller to have this line:
DistantCopCarSirens(false)
Technically this doesn’t need to be in a loop, however I never bothered to test if it is indeed true, so play around.

You mean in a ELS Config or create a .lua file?

1 Like

You can create a LUA file using this native

Example ;

-- client code
Citizen.CreateThread(function()
    while true do
        DistantCopCarSirens(false) -- Setting to false will disable the distant sirens
        Citizen.Wait(400)
    end
end)
1 Like

Not the config file, but any client-side .lua file. I don’t think there isn’t a single Lua file in the ELS script lol

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.