fsdfdsf Posted January 22, 2015 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
Mann56 Posted January 22, 2015 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* "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
Et-win Posted January 22, 2015 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. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
Mr_Moose Posted January 22, 2015 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 MTA Community | GitHub | 99Stack Forum
Mann56 Posted January 22, 2015 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 "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
Dealman Posted January 22, 2015 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 If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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