Jump to content

How can disable actions???


LT.Steiner

Recommended Posts

this example is for js client-side @LT.Steiner

 

global.chatopened = false;


mp.keys.bind(0x54, true, (player) => { /// T Key
    if (chatopened === true) return;
  	chatopened = true;
});

mp.keys.bind(0x0D, true, (player) => { /// ENTER Key
    if (chatopened === false) return;
     chatopened = false;
});

mp.keys.bind(0x4B, true, (player) => { /// a random key
    if (chatopened === true) return;  // add this to all of your keys code
  
     mp.events.callRemote('Lock_Vehicle_Key'); 
});

i'm gonna send some tutorial video to you check your pv.

Edited by attacking
  • Mask 1
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...