benwilkins Posted September 15, 2010 Share Posted September 15, 2010 Hey, I was wondering if someone would help me. I am trying to make a simple resource, so when your in a certian car, you can press O and it toggles a sound file that I already have called sirens.mp3. If someone could just point me in the right direction, even if they can just sort me out with somethig that it toggles a sound in every car and i can just mess around with it.. Thanks Link to comment
BinSlayer1 Posted September 15, 2010 Share Posted September 15, 2010 clientside https://wiki.multitheftauto.com/wiki/PlaySound Link to comment
dzek (varez) Posted September 15, 2010 Share Posted September 15, 2010 if this will be done only clientside - only one player will hear it you need a table (serverside) where you will be saving which car have sirens on, bindKey (serverside), triggerClientEvent (serverside), addEvent (clientside), addEventHandler (client side), table where you will be saving which car have sirens, and that sound variable (to be able to stop it), attachElements (to attach sirens to vehicle). probably thats all. not sure. 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