Hey
I've got a problem with my script
I tried to make a vehicle repair script but it doesn't work
NO errors
function fixVehicle ( thePlayer, commandName)
if ( isPedInVehicle ( thePlayer ) ) then
local theVehicle = getPedOccupiedVehicle ( thePlayer)
local succes = fixVehicle ( theVehicle )
if ( succes ) then
outputConsole (" Vehicle fixed. ", thePlayer )
else
outputConsole ( "Failed to fix your vehicle.", thePlayer)
end
else
outputConsole ( "You must be in a vehicle!", thePlayer )
end
end
addCommandHandler ( "vr", fixVehicle)
Does someone now what's wrong
Greetz Tsuki