Hey - I just got back into fivem developing again, and i started where i left on a esx server.
When i stopped working on it a few months ago everything was working flawless, but now everyone can use admin commands /setgroup etc. Ive been googling and youtubing all day yesterday and still stuck.
You only should only have this “ add_ace group.admin command allow # allow all commands” for ace perms. Use a admin menu like EasyAdmin menu to give admin perms.
This aparently prevents everybody for using commands user or admin.
Other resources like tpm, works. If the player is set as user in database they can´t use this command. ViceVersa
Example
RegisterCommand(“tpm”, function(source, args, rawCommand)
if source ~= 0 then
local xPlayer = ESX.GetPlayerFromId(source)
if havePermission(xPlayer) then
xPlayer.triggerEvent(“esx_admin:tpm”)
end
end
end, false)