Integrando com o EQPG
AddEventHandler("EQPG:banimentos", function(user_source, reason, token)
user_source = tonumber(user_source)
if not user_source or not reason then
return
end
local user_id = vRP.getUserId(user_source)
if not user_id then return end
local identity = vRP.userIdentity(user_id)
local steamHex = identity and identity.steam or nil
if steamHex then
pcall(function()
local rnld_reason = ("Banimento aplicado pelo EQPG: %s\n TOKEN/ACID: %s"):format(reason, token)
exports['rnld_api']:toggleBan({ steam = steamHex, reason = rnld_reason })
end)
end
end)Atualizado