function consoleAddUpgrade ( thePlayer, commandName, id )
if ( isPedInVehicle ( thePlayer ) ) then
local id = tonumber ( id )
local theVehicle = getPedOccupiedVehicle ( thePlayer )
local success = addVehicleUpgrade ( theVehicle, id )
if ( success ) then
outputConsole ( getVehicleUpgradeSlotName ( id ) .. " upgrade added.", thePlayer )
else
outputConsole ( "Failed to add upgrade.", thePlayer )
end
else
outputConsole ( "You must be in a vehicle!", thePlayer )
end
end
addCommandHandler ( "dodaj.tune", consoleAddUpgrade )