Szerver oldal:
function fixVehicle(source, commandName, target)
if (getElementData(source, \"faction\") == 1) then --frakció ID-t értelemszerűen átírod
if not (target) then
outputChatBox(\"Használat: /\".. commandName..\" [iD/NÉV]\", source)
else
local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(source, target)
local vehicle = getPedOccupiedVehicle(target)
if (vehicle) then
fixVehicle(vehicle)
setElementData(vehicle, \"enginebroke\", 0)
end
end
end
end
addCommandHandler(\"fix\", fixVehicle, false, false)|