Jump to content

Sirens in car


benwilkins

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...