Jump to content

horn


fsdfdsf

Recommended Posts

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

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

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