Jump to content

Help with some binds!


razvan2299

Recommended Posts

So I made the following binds for :

Z-Uses command /seatbelt

C-Uses command /cc

X-Uses command /togwindow

G-Uses /handbrake

Client Side:

  
addEventHandler( "onClientResourceStart", resourceRoot, 
    function( ) 
        bindKey( "G", "down", "handbrake" ) 
    end 
) 
  
addEventHandler( "onClientResourceStart", resourceRoot, 
    function( ) 
        bindKey( "c", "down", "cc" ) 
    end 
) 
  
addEventHandler( "onClientResourceStart", resourceRoot, 
    function( ) 
        bindKey( "x", "down", "togwindows" ) 
    end 
) 
  
addEventHandler( "onClientResourceStart", resourceRoot, 
    function( ) 
        bindKey( "z", "down", "seatbelt" ) 
    end 
) 

Meta:

<meta> 
     <info author="Daniel" type="script" name="Binds" description="Binds" /> 
     <script src="c_binds.lua" /> 
</meta> 

But this still doesn't work..Any help?

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