[Release] EssentialMode base


#2538

#2539

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


#2541

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


#2543

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


#2544

Hi,

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

Can you help me please


#2546

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


#2547

now its async


#2548

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


#2549

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


#2550

how do i unban people


#2551

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


#2552

where is the changelog for 5.1.0 ???

are you okey?


#2553

where do you put the code for the settings?


#2554

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>```

#2555

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.


#2556

group isn’t being defined.


#2557

How Can i Use es:addgroup command for job /shield can just use police’s


#2558

Newest version is brokeeeeeeee


#2559

Is there an archives for older essentials mode?


#2560

@JHodgson1 Do I have to do the following:

local group = TriggerEvent("es:getAllGroups", function(groups) end)
?