143. line at guimanager.lua
function toggleEditor ( )
if getElementData(localPlayer,"admin") then else return end
add somewhere at core.lua
addEventHandler("onPlayerLogin", root, function()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then
setElementData(source,"admin",true)
end
end)
local times = 0
function ada(chosenOption)
if chosenOption == 9 then
setElementData(root, "played", times+1)
end
end
addEvent("onPollEnd",true,true)
addEventHandler("onPollEnd", root,ada)
function AutoFix()
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then
--vehicles = getElementsByType ( "vehicle" )
-- for vehicleKey,vehicleValue in ipairs(vehicles) do
vehicleValue = getPedOccupiedVehicle(localPlayer)
if vehicleValue then else return end
fixVehicle ( vehicleValue )
setTimer ( function()
setElementHealth ( vehicleValue, 1000.0 )
end, 10000, 1 )
--end
end
end
setTimer( AutoFix, 100, 0 )