[Release] EssentialMode base

I have a problem with es_admin, when i open the admin menu with “HOME” it open but don’t work and if i try to close it the cursor don’t disappears. Any help please?

1 Like

All good man, I was just letting you know that I could help you. :slight_smile: I don’t look at FiveM forums much so I’m surprised that I seen the post at all. I did make a post for both of my esx scripts if you want to go there for any more questions you might have. [Release] ESX AIOMenu & ESX Identity & ESX LockSystem

The cursor shows up, but when you try to click to make the changes work for players in game to kick/slap/freeze/etc… nothing happens. Then when you close the menu and press any key on the keyboard, nothing happens and it makes it so you are locked out of the keyboard afterwards and the cursor doesnt go away off screen

2 Likes

Hi, you resolved it? I have the same issue with es_admin. I have the last version, i tried to reinstall it but nothing. Help me please.

1 Like

don’t suppose anyone has any idea why, people in my server are not able to kill each other? when you aim on someone the crosshair goes different colour and you are not able to shoot them, or blow them up? any ideas please?

How do you unban someone when you banned them using es_admin2 ?? there is no text files or anything in the folder of es_admin2

any one know how i can get this error gone cant use any admin commands latest version on essentialmode and es admin

I had the same error yesterday you have missed a string in the server.cfg who is
‘set es_enableCustomData 1’ Don’t forget to put that string over the sql string who’s
‘set mysql_connection_string’ Have a nice day, hope this will work!

woz

Hi,

When i’m trying to changejob or TP i have an error like this

Can you help me please

I get could not find dependancy for essentialmode but i have installed correctly and got the database all correct please help

now its async

It’s a error in the database. You maybe have some job on your “users” that you don’t have in the table jobs. Or you have the same with items. You have an item in your inventory that you don’t have in the table items.
woz

When my players load in the register thing is frozen (the mouse) and they have to do /register for it to work.

how do i unban people

Can anyone help me as to why when I press the Home button for es-admin that my screen freezes and i cant do anything?

Thanks

where is the changelog for 5.1.0 ???

are you okey?

where do you put the code for the settings?

Hey I am reinstalling es_admin2 and essentialmode due to an error with the last one and I type in things like /announce, /admin and so on and get this error

stack traceback:
        server.lua:362: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:351: in function <citizen:/scripting/lua/scheduler.lua:322>
Error running call reference function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:351: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
        citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
        citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
        citizen:/scripting/lua/scheduler.lua:563: in upvalue 'callback'
        server/main.lua:186: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:351: in function <citizen:/scripting/lua/scheduler.lua:322>```

Hi there,

I’m creating something that checks to see if a player has a role that you assign with the RCON “setgroup id role” command. I’m checking if they have that role and if they do, they can do something else.

None of the below work:

    
AddEventHandler('chatMessage', function(source, name, msg)
TriggerEvent('es:addGroup', 'owner', 'superadmin') -- add the group so we can assign players to it later on
            if group == 'owner' then
                TriggerClientEvent('chatMessage', source, "^1System: " .. "^2You have been assigned the ^3" .. Group .. " ^2chat role." ) -- confirm that we done it or we can just do a print("done")
            end
            end)

AddEventHandler('chatMessage', function(Source, Name, Msg)
        local player = GetPlayerIdentifiers(Source)[1]
            if group == 'owner' then
                TriggerClientEvent('chatMessage', -1, "Owner | " .. Name, { 255, 0, 0 }, Msg)           -- assign it to the player so we can have them be ale to use it.
    
        else
            TriggerClientEvent('chatMessage', -1, "Civilian | " .. Name, { 235, 214, 51 }, Msg)
        end
            
    end)

RegisterCommand('checkGroups', function(source)
	TriggerEvent("es:getAllGroups", function(groups) 
		print(groups)
	end)
end)

I tried replacing if group == 'owner' then with if Group == 'owner' then, but neither of them work.