TriggerEvent('es:addCommand', 'report', function(source, args, user)
TriggerClientEvent('chat:addMessage', source, {
args = {"^1REPORT", " (^2" .. GetPlayerName(source) .. " | " .. source .. "^0) " .. table.concat(args, " ")}
})
TriggerEvent("es:getPlayers", function(pl)
for k,v in pairs(pl) do
TriggerEvent("es:getPlayerFromId", k, function(user)
if(user.getPermissions() > 0 and k ~= source)then
TriggerClientEvent('chat:addMessage', k, {
args = {"^1REPORT", " (^2" .. GetPlayerName(source) .." | "..source.."^0) " .. table.concat(args, " ")}
})
end
end)
end
end)
end,