Jump to content

How to do ?


FuriouZ

Recommended Posts

Posted

No.

Use this to show the GUI

bindKey ( "--button--", "down", showGUI ) 

Then this to hide it

bindKey ( "--button--", "up", hideGUI ) 

Level 3 admin on RRC:RPG.

560x95.png

Posted

What's the problem of using the "both" state?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I still don't get it what is Bad Argument .. Debug says "bad argument @ unbindkey

Server:

local root = getRootElement() 
  
function unBindKeys ( ) 
        unbindKey ( thePlayer, "arrow_up", "both") 
        unbindKey ( thePlayer, "arrow_down", "both")     
        unbindKey ( thePlayer, "arrow_left", "both")     
        unbindKey ( thePlayer, "arrow_right", "both")        
end 
addEventHandler ( "onPlayerSpawn", root, unBindKeys ) 
addEventHandler ( "onPlayerJoin", root, unBindKeys )                     
addEventHandler ( "onPlayerLogin", root, unBindKeys ) 

Posted

'thePlayer' is not defined anywhere, change it to 'source'.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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