Jump to content

[HELP] bindKey to this


hrtht

Recommended Posts

function repairVehicle ( thePlayer, commandName)
    if ( isPedInVehicle ( thePlayer ) ) then
        local theVehicle = getPedOccupiedVehicle ( thePlayer)
        local succes = fixVehicle ( theVehicle )
        if ( succes ) then
            outputChatBox (" 1 ", thePlayer )
        outputChatBox ( "0", thePlayer )
    end
end
end
addCommandHandler ( "rv", repairVehicle)

 

Its serverside

Link to comment
  • Moderators

First you could say hi or something, we are not robots so we do have feelings and that would be greatly apreciated.

Second, you didn't follow the Formatting guidelines:

Your code has to be in a code block with Lua language.

Third, you can't request people to make the script for you, try to do it first and if you can't make it work, please show the code you tried.

  • Like 2
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...