Jump to content

[HELP]How to bind this?


Recommended Posts

function fixCar (player,command) 
    skin = getPedSkin (player) 
         if ( skin == 50 ) then 
            local vehicle = getPedOccupiedVehicle(player) 
                if (vehicle) then 
            fixVehicle(vehicle) 
            takePlayerMoney(player,100) 
        end 
    end 
end 
addCommandHandler("repair" , fixCar) 
addCommandHandler("rp" , fixCar) 

how to bind rp to right_click[if player press right_click(repair)

Link to comment
Guest Guest4401

This is the syntax you should use.

bindKey ( player thePlayer, string key, string keyState, string commandName, string arguments ) 

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