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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.