Jump to content

"X" is binded for everyone how to unbind? [RPG]


NitroZ

Recommended Posts

Yoo guys,

this if my first topic but in this topic i'm not going to introduce myself because i need some help.

I have an RPG server but "x" is glue and it is giving my mouse, i need to know how i can unbind "X" for my mouse, i downloaded an resource that "M" is my mouse, but then i have "X" and "M" as mouse and i only need "M", so how can i unbind "x"?

Link to comment

if not want glue the use that

addEventHandler("onPlayerLogin", root, 
function() 
    unbindKey(source, "x", "down") 
end) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
   for _, v in ipairs(getElementsByType("player")) do 
       unbindKey(v, "x", "down") 
   end 
end) 

Link to comment

did you understand what i mean?

"X" is binded for showing my mouse (cursor) but glue too

"X" needs to unbind for the mouse (cursor).

i only need "X" for glue plugin.

How can i unbind it for everyone? because everyone on the server has that.

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