Supernova Posted January 4, 2013 Share Posted January 4, 2013 I'm quite new to scripting, although I know the very basics of it - enough for me to get my head around the average few lines of code. Anyway, doing some research, I've come across a neat function which goes by the name of addVehicleSirens. I've attempted to get it working myself, but have failed countless times, so I'm turning to here in hope of being able to get a hand. All I need to know is how exactly to set up a function like this one, I'm sure there's many of you that will know the answer to this simple question. Thanks a lot! Link to comment
TAPL Posted January 4, 2013 Share Posted January 4, 2013 I think the example in the wiki is enough, post your code so we can help you find out what is was wrong. Link to comment
Supernova Posted January 4, 2013 Author Share Posted January 4, 2013 Hasn't been much really, just copy and pasted the example and tweaked it a little. How would I implement it into the regular free roam game mode? Link to comment
TAPL Posted January 4, 2013 Share Posted January 4, 2013 It depends on how you want it to work, the example is simply will add the sirens to any vehicle you enter and it will be removed from the vehicle when you exit from it, that all. You just need to create new resource, and copy - paste the example, and be sure it must be server side. Link to comment
Supernova Posted January 4, 2013 Author Share Posted January 4, 2013 Hmm. I hope I'm not mistaken - addVehicleSirens is the function that allows you to custom light bar patterns, right? Link to comment
TAPL Posted January 4, 2013 Share Posted January 4, 2013 For that you need setVehicleSirens too. Link to comment
Supernova Posted January 4, 2013 Author Share Posted January 4, 2013 Is there any chance you could somewhat explain to me how to use the two in combination with each other? Link to comment
Blaawee Posted January 4, 2013 Share Posted January 4, 2013 mybe this well help you : [gameplay]\sirenEdit run it and type this command: /sirens 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