Sign in to follow this  
justgabri

Some problems with disablecontrolaction

Recommended Posts

Hi, i am creating a seatbelt script, but i have a problem. I am using this to force the player stay in the vehicle when seatbelt is on, but it doesn't work. Some ideas?

 

mp.game.controls.disableControlAction(0, 75, true);

Share this post


Link to post
Share on other sites

Fine, now works!

But, i have another problem now. I am trying to stream sounds when the player press the key for the seatbelt. I am using this method, but it doesn't work.

 

function playSounds(file) {
Audio = new Audio(file);
Audio.volume = 1;
Audio.play();
}
 
And then this to call the function: 
playSounds("html/sounds/buckle.ogg");

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.