Mi lehet a baj vele ? (Externalmodon használom , nem kell megölni érte pls )
function nitrobe()
local vehicle = getPedOccupiedVehicle(localPlayer)
if (vehicle) then
if getElementData(vehicle, \"tuning.nitrovan\") == 1 then
addVehicleUpgrade(vehicle, 1010)
else
return end
return end
end
function nitroki()
local vehicle = getPedOccupiedVehicle(localPlayer)
if (vehicle) then
if getElementData(vehicle, \"tuning.nitrovan\") == 1 then
removeVehicleUpgrade(vehicle, 1010)
else
return end
return end
end
addEventHandler(\"onClientResourceStart\", resourceRoot, function()
bindKey(\"lalt\", \"down\", nitrobe)
bindKey(\"lalt\", \"up\", nitroki)
end)
function addnitro()
if getElementData(localPlayer, \"charAdmin\") >= 1 then
local vehicle = getPedOccupiedVehicle(localPlayer)
if (vehicle) then
setElementData(vehicle, \"tuning.nitrovan\", 1)
outputChatBox(\"#1e90ff[Nitro]#ffffff: Sikeressen adtál a kocsinak nitró tuningot !\", 255, 255 ,255 ,true)
else
outputChatBox(\"#1e90ff[Nitro]#ffffff: Nem ülsz kocsiba, így hogy akarsz nitrót adni a kocsinak?!\", 255, 255 ,255 ,true)
end
else
outputChatBox(\"#1e90ff[Nitro]#ffffff: Admin nélkül nehéz lesz !\", 255, 255 ,255 ,true)
end
end
addCommandHandler(\"addnitro\", addnitro)
function removenitro()
if getElementData(localPlayer, \"charAdmin\") >= 1 then
local vehicle = getPedOccupiedVehicle(localPlayer)
if (vehicle) then
setElementData(vehicle, \"tuning.nitrovan\", 0)
outputChatBox(\"#1e90ff[Nitro]#ffffff: Sikeressen kivetted a kocsiból a nitró tuningot !\", 255, 255 ,255 ,true)
else
outputChatBox(\"#1e90ff[Nitro]#ffffff: Nem ülsz kocsiba, így hogy akarod kiszedni a kocsiból a nitrót?!\", 255, 255 ,255 ,true)
end
else
outputChatBox(\"#1e90ff[Nitro]#ffffff: Admin nélkül nehéz lesz !\", 255, 255 ,255 ,true)
end
end
addCommandHandler(\"aremovenitro\", removenitro)