[Release] PolSpeak - Police Vehicle Megaphone

It’s time to release my megaphone menu I’ve been using for a while now.
This menu lets you shout original AI cop sounds while you’re driving a police vehicle.

Old video but it’s all I got right now. There’s categories and more sounds in this release.

Video: https://streamable.com/s465x
Default control: F10
Requirements: NativeUI, InteractSound
Download: https://github.com/bzrr/polspeak


Update 2019-05-11:
Since many of you are having problems and can’t hear any sound I’ve zipped all of my files, pre-configured. Just drop them in the resource folder and use this start order. This works for me.

start NativeUI
start InteractSound
start polspeak

polspeak.zip (1.9 MB)


Move the included .ogg files to InteractSound/client/html/sounds and update __resource.lua. The megaphone menu can only be activated from vehicles listed in the config file.

Your InteractSound __resource.lua file should look something like this

Show me
files({
    'client/html/index.html',
    -- Begin Sound Files Here...
    -- client/html/sounds/ ... .ogg
    'client/html/sounds/demo.ogg',
    'client/html/sounds/demo.ogg',
	'client/html/sounds/stop_vehicle.ogg',
	'client/html/sounds/stop_vehicle-2.ogg',
	'client/html/sounds/stop_the_f_car.ogg',
	'client/html/sounds/dont_make_me.ogg',
	'client/html/sounds/clear_the_area.ogg',
	'client/html/sounds/its_over_for_you.ogg',
	'client/html/sounds/you_are_finished_dhead.ogg',
	'client/html/sounds/cant_hide_boi.ogg',
	'client/html/sounds/stop_dont_move.ogg',
	'client/html/sounds/give_yourself_up.ogg',
	'client/html/sounds/stay_right_there.ogg',
	'client/html/sounds/freeze_lspd.ogg',
	'client/html/sounds/stop_or_executed.ogg',
	'client/html/sounds/stop_or_i_kill.ogg',
	'client/html/sounds/this_is_the_lspd.ogg',
	'client/html/sounds/move_along_people.ogg',
	'client/html/sounds/get_out_of_here_now.ogg',
	'client/html/sounds/disperse_now.ogg',
	'client/html/sounds/shoot_to_kill.ogg',
	'client/html/sounds/drop_a_missile.ogg',
	'client/html/sounds/lock.ogg',
	'client/html/sounds/unlock.ogg'
})
22 Likes

Why not just play the sound from the entity for all clients in a nearby radius or so? then you wouldnt need something like interact sound and also possibly have correct sound dropoff (the sound being faded or so when you are further away from the vehicle)

2 Likes

I’ve tried that but my skillz gave up on me :frowning:

Do you have a link for InteractSound I cant seem to find it. Edit: Great script btw. Edit2: Nvm found it :man_facepalming:

1 Like

Yeah. Id use what Illusive said. That would be sooo much better. I can help us out if you want as I have done this before.

2 Likes

i love the idea of this script :open_mouth: thanks for releasing this!

2 Likes

Great thinking with the InteractSound script and making a working menu for it :heart_eyes:

2 Likes

I agree, but since I had the sound files ready to be converted I used InteractSound.
Could this be done with PlayAmbientSpeechWithVoice?

1 Like

http://runtime.fivem.net/doc/natives/#_0x8E04FEDD28D42462

use this one instead.

list of sound names is here:

i’d search for police in the list to start.

Hmm… I’ve seen that list before but how do I trigger a speech? Could you give me an example?

You are the best …

Thanks m8 i have been waiting for this since you showed that previe a long time ago

Is there any way to add custom sounds so say for example i can add custom sounds that i make my self / record my self

Hi! I edited it a bit and it’s sending me this.


Here’s my files:__resource.lua (206 Bytes)
client.lua (3.5 KB)
config.lua (176 Bytes)
https://forum.cfx.re/uploads/default/original/3X/2/4/244f38f732574715c1ea2e883e09528c0b6b542c.ogg https://forum.cfx.re/uploads/default/original/3X/a/8/a8e634eff2d085fd0bf0c788d9902b27c0f842f2.ogg https://forum.cfx.re/uploads/default/original/3X/3/8/386385a23193c40ff2e4632c961dafe0197c1229.ogg https://forum.cfx.re/uploads/default/original/3X/6/6/66083109c6ebe83dcaaeb9f07e8da54e0a2477fd.ogg https://forum.cfx.re/uploads/default/original/3X/a/1/a152b85912632ea3e968bb76a4ce4711b2dc34d6.ogg

1 Like

Mate, I dont think you have NativeUI installed?

Well, read the error. It says “Failed to load script @NativeUI”. You need NativeUI for the menu to work.

Hey I cant get it to work here is the error code
https://gyazo.com/097e0bbdd4141ed7f096f70ab623ba71

I have NativeUI
I have InteractSound

Have you edited the script in any way?

No only InteractSound

PM me your server.cfg

2 Likes