[Release] PolSpeak - Police Vehicle Megaphone

make sure interact sound is started on your server and you have the ogg files written into the resource folder the error you showed doesnt involve this resource at all.

Here is my files

My starts order is

# dev 
start NativeUI
start InteractSound
start polspeak

Any way to disable control support? Every time I press B (O) on my controller, the menu quickly appears and disappears.

Yeah, edit line 162 in client.lua.

Replace
if IsControlJustPressed(1, 57) then
with
if IsControlJustReleased(1, 57) and GetLastInputMethod(0) then

1 Like

Fantastic, thank you.

Hey mate i have this problem

Error resuming coroutine: client.lua:50: attempt to call a nil value (global 'vehicleType')
stack traceback:
    client.lua:50: in function <client.lua:44>

All the code are not modified just default

Uops alredy resolved :slight_smile:

How can i make it soundDistance?

You can change the sound distance by edit these lines in client.lua, where it says 30.0:

TriggerServerEvent(“InteractSound_SV:PlayWithinDistance”, 30.0, “stop_or_executed”, 0.6)

“You are not in a vehicle equipped with a megaphone”, How do I fix this? Like I have a few add-on police cars that I want to use on this script and yes, I did add them to the config.lua.

Are you sure haven’t messed up the config file? Missed a comma or such? It works for me on add-on cars.


cfg

Nope.
image

EDIT 1: I also kinda can’t have the InteractSound because it crashes my server…

Hey brother, did you got any solution?

No I cant get it to work so yeah that is funn

Works fine for me i just installed everything and worked. Send me the three folders. Ill have a look.

Hey guys i am using this script fs_taxi with the cops AI activated but when i call a taxi pressing F7 or typeing /taxi and getting in as passenger some times i get 2 stars wanted level by the police. Is there a way to whitelist the taxi if you are not wanted? Because if you are that’s fine to me you keep the wanted level.

Don’t work. I have interactSound, I changed __resource, Interact menu open, but sounds don’t playing.

can anyone help me? i alrd follow the instruction but when im trying to use it on my server theres no sound.

I have no idea how ya’ll manage not to make this script work. :man_shrugging:
There must be some kind of conflict with another resource or you haven’t setup InteractSound properly.

yeah same here, done whats on the thread and menus and custom vehicles load the menu fine, but sounds refuse to work. moved all the sounds to “InteractSound\client\html\sounds” and defined them in the “__resource.lua” in InteractSound as well… no idea.