what does your permission setup look like?
## ADMIN STARTS ##
set ea_LanguageName "en" # set our language to english, available languages: en,de,fr,it,sv
set ea_MenuButton "243" # set our menu button to ~. default: "243"
set ea_alwaysShowButtons "true" # we don't want to see buttons we can't even access, do we? default: "false"
set ea_moderationNotification "true" # this can be either "false" or a discord webhook address, this will send a discord message if an admin takes actions against a player ( such as banning and kicking )
set ea_moderationNotification "private
add_ace group.admin easyadmin allow
add_ace group.moderator easyadmin.kick allow # allow kicking
add_ace group.moderator easyadmin.spectate allow # allow spectating
add_ace group.moderator easyadmin.freeze allow # allow freezing
add_ace group.moderator easyadmin.ban deny # disallow banning
add_ace group.moderator easyadmin.unban deny # also disallow unbanning
#add_principal identifier.ip:127.0.0.1 group.moderator # add a user to the moderator group, any identifier works this way.
add_principal identifier.steam:private group.moderator # add the admin to the group # LEO
## ADMIN ENDS ##
well?
what about it? i have my group set as admin. i thought that gave all permissions
but you added a user as moderator on the bottom?
could that be why?
(20chars)
why doesnât your apartment look like the one in the ad? maybe its because you are living in a different apartment?
uhh i donât get it.
(20chars)
you are expecting ADMIN permissions when you set the user on the bottom as a MODERATOR, how is that so hard to comprehend.
oh so thatâs why?
(20chars)
I think you officially broke bluâŚ
I am trying to get this to work on my server and itâs just not working. I downloaded it, put it into my resources folder, renamed it to âEasyAdminâ, added âstart EasyAdminâ into the server.cfg, dragged the NativeUI.dll into the root directory of the EasyAdmin folder and added my permissions to the botton of my server.cfg like this:
sv_licenseKey "################################"
# you probably don't want to change these!
# only change them if you're using a server with multiple network interfaces
endpoint_add_tcp "0.0.0.0:30270"
endpoint_add_udp "0.0.0.0:30270"
### Default Resources ###
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start â â â â â â â
#start scoreboard
start playernames
### [scripts] ###
start alaska-state-roleplay
### vBasic ###
set vb_check true
set vb_debug false
set vb_enable_traffic_control true
set vb_enable_crowd_control true
set vb_crowd_density 1.0
set vb_traffic_density 1.0
set vb_disable_wanted_level true
set vb_disable_emergency_services true
set vb_enable_pvp true
start vBasic
### vMenu ###
set vMenuToggleMenuKey 288
set vMenuNoClipKey 243
set vMenuDisableTimeAndWeatherSync true
start vMenu
### EasyAdmin ###
set ea_LanguageName "en"
set ea_MenuButton "289"
set ea_moderationNotification "https://discordapp.com/api/webhooks/456483143587856385/3n8g273i6N9BeD3yxeMreUBOzxuUynKsZ1PecpQm0B3-DPIePAXYE8VdsfTrnPvHUfNq"
start EasyAdmin
sv_scriptHookAllowed 0
# change this
#rcon_password yay
sv_hostname "Test Server"
# nested configs!
#exec server_internal.cfg
# loading a server icon (96x96 PNG file)
load_server_icon test.png
# convars for use from script
set temp_convar "hey world!"
# disable announcing? clear out the master by uncommenting this
#sv_master1 ""
# want to only allow players authenticated with a third-party provider like Steam?
#sv_authMaxVariance 1
#sv_authMinTrust 5
# add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.steam:110000110923bf4 group.admin # add the admin to the group
add_principal identifier.steam:11000010ca28629 group.admin # add the admin to the group
# remove the # to hide player endpoints in external log output
#sv_endpointprivacy true
# server slots limit (must be between 1 and 31)
sv_maxclients 5
add_ace group.admin easyadmin allow # allow all commands for admins
add_ace group.moderator easyadmin.kick allow # allow kicking
add_ace group.moderator easyadmin.spectate allow # allow spectating
add_ace group.moderator easyadmin.freeze allow # allow freezing
add_ace group.moderator easyadmin.ban deny # disallow banning
add_ace group.moderator easyadmin.unban deny # also disallow unbanning
add_principal identifier.steam:110000110923bf4 group.moderator # add a user to the moderator group, any identifier works this way.
add_principal identifier.steam:11000010ca28629 group.moderator # add a user to the moderator group, any identifier works this way.```
because thatâs not how it works, it specifically requires NativeUILua, not âjustâ NativeUI
Iâm having a problem where I just banned someone I go to refresh banlist but the player doesnât show up under âUnban Playerâ. I restarted the server and it showed up but is there a way to fix it so it shows up immediately after refreshing the Banlist in the menu?
Love the script man, itâs come so far! <3
i fixed myself
go to line 368 and replace this entire line:
if permissions.unban then
local thisItem = NativeUI.CreateItem(strings.refreshbanlist, strings.refreshbanlistguide)
settingsMenu:AddItem(thisItem)
thisItem.Activated = function(ParentMenu,SelectedItem)
TriggerServerEvent("EasyAdmin:updateBanlist")
settingsMenu:Visible(false)
Wait(2000)
GenerateMenu()
settingsMenu:Visible(true)
end
end
and line 326:
if permissions.unban then
unbanPlayer = _menuPool:AddSubMenu(servermanagement,strings.unbanplayer,"",true)
local reason = ""
local identifier = ""
for i,theBanned in ipairs(banlist) do
identifier = banlist[i].identifier
if showLicenses then
reason = banlist[i].identifier
else
reason = banlist[i].reason
end
local thisItem = NativeUI.CreateItem(reason, strings.unbanplayerguide)
unbanPlayer:AddItem(thisItem)
thisItem.Activated = function(ParentMenu,SelectedItem)
TriggerServerEvent("EasyAdmin:unbanPlayer", banlist[i].identifier)
TriggerServerEvent("EasyAdmin:updateBanlist")
_menuPool:CloseAllMenus()
Citizen.Wait(800)
GenerateMenu()
unbanPlayer:Visible(true)
end
end
end
and then lastly replace at line 351:
if permissions.unban then
local sl = {strings.unbanreasons, strings.unbanlicenses}
local thisItem = NativeUI.CreateListItem(strings.banlistshowtype, sl, 1,strings.banlistshowtypeguide)
settingsMenu:AddItem(thisItem)
settingsMenu.OnListChange = function(sender, item, index)
if item == thisItem then
i = item:IndexToItem(index)
if i == "Reasons" then
showLicenses = false
else
showLicenses = true
end
end
end
end
Used to when I update EasyAdmin I change the Button to 213 which is the Home button and I do that by changing
settings = {
button = 213,
in gui_c.lua but this time it didnât work. Any idea why?
Donât edit the files. Use convars
set ea_MenuButton â213â # set our menu button to F2. default: â289â
I have it set here as well.
Thatâs all you need to do add that to the Server.cfg and put the files back to normal. And it should work
I tried that, and tried fresh install and its not working.