fsdfdsf Posted January 22, 2015 Share Posted January 22, 2015 how to make a script, when the player in vehicle it says ( horn has been set, press H to play the horn ) but if he is not in the vehicle it says (you need a vehicle to set a horn)? and save the horn when the player join the server and login. thanks Link to comment
Mann56 Posted January 22, 2015 Share Posted January 22, 2015 how to make a script, when the player in vehicle it says ( horn has been set, press H to play the horn )but if he is not in the vehicle it says (you need a vehicle to set a horn)? and save the horn when the player join the server and login. thanks Horns are available without any script. Press H Any such script would look foolish. Everybody knows horn is in vehicle. *sigh* Link to comment
Et-win Posted January 22, 2015 Share Posted January 22, 2015 how to make a script, when the player in vehicle it says ( horn has been set, press H to play the horn )but if he is not in the vehicle it says (you need a vehicle to set a horn)? and save the horn when the player join the server and login. thanks Horns are available without any script. Press H Any such script would look foolish. Everybody knows horn is in vehicle. *sigh* And you should learn to read properly before posting a comment. Link to comment
Mr_Moose Posted January 22, 2015 Share Posted January 22, 2015 Custom horn sounds? well this might not be exactly what you're looking for but it's relatively close I suppose: https://github.com/GTWCode/GTW-RPG/tree/master/resources/GTWtrainhorn Link to comment
Mann56 Posted January 22, 2015 Share Posted January 22, 2015 how to make a script, when the player in vehicle it says ( horn has been set, press H to play the horn )but if he is not in the vehicle it says (you need a vehicle to set a horn)? and save the horn when the player join the server and login. thanks Horns are available without any script. Press H Any such script would look foolish. Everybody knows horn is in vehicle. *sigh* And you should learn to read properly before posting a comment. Still I don't get him Link to comment
Dealman Posted January 22, 2015 Share Posted January 22, 2015 He wants to add his own custom horn sounds. @OP: This is easy to do. Whenever you want someone to use a custom sound, use toggleControl to disable the default horn. Then use bindKey to bind a function, so that whenever H is pressed - it will play your sound. toggleControl bindKey getElementPosition playSound3D attachElements -- Attach the sound element to the car. Of course you'd also have to sync it for all clients using; triggerServerEvent triggerClientEvent 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