I need help with LEO vehicles in fivem server

I have put multiple LEO cars in my fivem server all correctly I believe and I’m able to spawn them, but usually on other server when you press alt it turns on the lights and R is for the sirens, but on my server when I honk the lights turn on and no sirens.
I appreciate any help!

I get the same problem with the lights and siren. Just look around for it.

1 Like

It’s probably because other servers have custom binds for them, I’d say?

And by default the sirens of a LEO are turned on from honk. And for sound/siren, not only lights, try to double or multiple times press the button to turn them on.

Do you know how I can make it so its alt to turn on lights and R for sirens, or like a script that does it.

You can probably have a look here: https://docs.fivem.net/docs/game-references/controls/ for how to use game controls.

And I think that you can use this native to turn on the siren when you want in your code https://runtime.fivem.net/doc/natives/?_0xF4924635A19EB37D for example turn it on once your preffered keybind was pressed.

And this probably https://runtime.fivem.net/doc/natives/?_0xD8050E0EB60CF274 to have only LIGHTS without SIREN SOUND.

With this https://runtime.fivem.net/doc/natives/?_0x4C9BF537BE2634B2 you can check if the siren light is already on when you try to power it.
And with this https://runtime.fivem.net/doc/natives/?_0xB5CC40FBCB586380 see if the sound of the siren is on.

I did not test this out but I assume it should work.

1 Like

hey there man you need Lux Vehicle control to use Q for lights Alt for Siren And R for blip/cycle
Here is the link: [Release] Luxart Vehicle Control
make sure to put It in your resources folder and start it in your server. cfg

@Fletcher2

1 Like

THX! this fixed it for me, im also really confused on how to change it so the fire vehicles use the correct sirens, because right now there using police sirens.

1 Like

yeah that’s client side I belive @Fletcher2

No, I have made my own siren pack that have fire and police sirens working on the correct vehicles, I went on a server that has it all set up, and the fire vehicles use fire sirens and the police vehicles use the police sirens.

no clue @fletcher2

local count_bcast_timer = 0
local delay_bcast_timer = 200

local count_sndclean_timer = 0
local delay_sndclean_timer = 400

local actv_ind_timer = false
local count_ind_timer = 0
local delay_ind_timer = 180

local actv_lxsrnmute_temp = false
local srntone_temp = 0
local dsrn_mute = true

local state_indic = {}
local state_lxsiren = {}
local state_pwrcall = {}
local state_airmanu = {}

local ind_state_o = 0
local ind_state_l = 1
local ind_state_r = 2
local ind_state_h = 3

local snd_lxsiren = {}
local snd_pwrcall = {}
local snd_airmanu = {}

– these models will use their real wail siren, as determined by their assigned audio hash in vehicles.meta
local eModelsWithFireSrn =
{
“FIRETRUK”, <<<
“car-name”,
}

Client.lua

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