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