Jump to content

Sirens in car


benwilkins

Recommended Posts

Posted

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

Posted

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.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...