This is a release of my Walkie-Talkie / Police Radio
I implemented interact sound in this Script.
Usage:
Press and hold Y on your keyboard to speak. An animation will be triggered which shows a police officer holding his radio. Be careful while talking to your collegues. Other Persons that are nearby can listen to it.
When using the Radio, a little radio sound will be played, when releasing it aswell.
Video Showcase (Without Talking)
If you have some, feel free to send them to me.
VOICE ACTIVATION ONLY!
For any bugs or things that don’t work, please reply to this thread.
Known Bugs or things that don’t work
Nearby People can’t hear the voice of the radio (removed)
ESX-Radio Changelog
1.1.0 released, radio Item has been added
1.2.0 released, removed the animation on cops that don’t use the radio.
VRP-Radio Changelog
1.1.0 released, radio Item has been added
1.2.0 released, you can decide now between group Cop and Permission “radio.police”
Fixed a bug, where people could use the Y key and cops hear the radio sound
[ESX] The item is as an sql file in the files. Please add the line manually to ur table “items”
Just for Police, because its not working with voice channels, its only working with proximities. But I can do it for all players too, if you want ^^. Maybe I will work on that.
Stopping resource esx_radio
Started resource esx_radio
Error running system event handling function for resource esx_radio: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:41: attempt to index a nil value (local ‘xPlayer’)
stack traceback:
server/main.lua:41: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback: