Jump to content

Bind or Vehicle fix not function


gamelaster

Recommended Posts

Hello, im pressing Z key to fix, also not function :(. Code:

  
function fixing ( player ) 
    local vehicle = getPlayerOccupiedVehicle ( player ) 
    if (vehicle) then 
        fixVehicle ( vehicle ) 
        outputChatBox ( "Your vehicle was fixed!", player, 0, 255, 0 ) 
    end 
end 
  
addCommandHandler("fixfix",fixing) 
bindKey("z","down","fixfix") 

Link to comment
  
function fixing ( ) 
    local vehicle = getPedOccupiedVehicle ( source ) 
    if (vehicle) then 
        fixVehicle ( vehicle ) 
        outputChatBox ( "Your vehicle was fixed!", source, 0, 255, 0 ) 
    end 
end 
  
addCommandHandler("fixfix",fixing) 
bindKey("z","down","fixfix") 
  

Link to comment

Ok fixed. This is code for newbies:

  
me = getLocalPlayer() 
  
function fixing ( ) 
    local vehicle = getPedOccupiedVehicle ( me ) 
    fixVehicle ( vehicle ) 
    outputChatBox ( "Your vehicle was fixed!", me, 0, 255, 0 ) 
end 
  
addCommandHandler("fixfix",fixing) 
bindKey("z","down","fixfix") 
  

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