NekoSteamBoy Posted July 10, 2011 Share Posted July 10, 2011 Hello everyone. Im currentlyg working on a German Rescue Training Gamemode. Now i have 2 Questions. 1. Is there a way to disable the "H" Button for the Policecar/Ambulance Sound? 2. How do i Play a sound on Num_5 for everyone around a certain car? I want to add a costum Alarm Sound for the Police Cars and such. I hope someone can give me a hint Greetings NekoSteamBoy Link to comment
qaisjp Posted July 10, 2011 Share Posted July 10, 2011 unbindKey() bindKey() triggerClientEvent() triggerServerEvent() playSound3D() createColTube() isElementInColshape() Link to comment
NekoSteamBoy Posted July 10, 2011 Author Share Posted July 10, 2011 Hi thanks for the tipps i will look into that ^-^ But if i use the unbindKey will it also disable the honk? Link to comment
qaisjp Posted July 10, 2011 Share Posted July 10, 2011 yes, but you can always record the honk or you can bind a key to "horn" that set's the vehicle emergency lights off (setVehicleEmergencyLights), it should also set sound off Link to comment
NekoSteamBoy Posted July 10, 2011 Author Share Posted July 10, 2011 Ah ok i see Thanks alot i will try that to find out myself ^-^ i hope i can make it since im pretty new into lua *blush So its possible to do this right? On pressing num_5 Activate german-alarm.mp3 (3dsound) Sound follows car Activate Emergency lights just asking to make that sure ^-^ so i dont try try try and just fail fail fail x'D Link to comment
qaisjp Posted July 10, 2011 Share Posted July 10, 2011 yeah! attachElements(player, sound) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now