[Release] EssentialMode base

try to set yourself admin in your server.cfg and in es_admin

try to find the revive script, where it lets superadmins revive, copy paste code and let admins & mods revive. its probably in the config somewhere.

Im using es_admin2 where would that be?

Ok, so I’ve recently switched over to a paid hosting service. They didn’t include CouchDB, so I need to do it through my PC. I’ve fowarded the port ‘5984’ and changed the binding address to ‘0.0.0.0’ and it didn’t work. I tried the binding address with my public ip, along with my ipv4 and it doesn’t work. Anyone know what I can do?

How would i make it so it shows the banning or kicking admins name? I can find it in the server.lua and change it around but cant get the function for the banning or kicking admins name. If anyone can help that would be appreciate thanks.

I’ve tried 2x times and i get the same error:

im having this error when i connect to the server:

here are some screenshots that may be usefull:

I have a problem. I use the basic system of SQL. Sometimes players enter the server, they cannot record his steam data, and he uses other people’s recorded data. No one else meets it? I need help.

Ban Feature is broken?

I get the following message at the bottom Im not sure whats wrong I can not Set admin or do and thing like /me /do it keeps giving the same error

I see this
Error running system event handling function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 00000000406b4b20 in script host failed.

I have the files inside of a folder named [essential] should I have edited a directory somewhere?
In the past i just had all the folders in the resources root. But I did a new install on a server and now I have this…

Any pointers?

[    222938] stack traceback:
[    222938] 	[C]: in upvalue '_in'
[    222938] 	citizen:/scripting/lua/natives_server.lua:141: in function 'GetPlayerName'
[    222938] 	server.lua:220: in upvalue 'handler'
[    222938] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
[    222938] stack traceback:
[    222938] 	[C]: in function 'error'
[    222938] 	citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
[    222938] 	citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>
[    398531] Sending heartbeat to live-internal.fivem.net:30110
594] Started resource sessionmanager
[       610] Started resource async
[      1016] Loaded MySQLAsync.net, Version=2.0.2.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1347746409
[      1031] Instantiated instance of script MySQLAsync.MySQLAsync.
[      1031] Started resource mysql-async
[      1078] Started resource essentialmode
[      1078] Started resource esplugin_mysql
[      1110] Started resource es_extended
[      1141] Started resource es_admin2
[      1156] Started resource esx_menu_default
[      1156] Started resource esx_menu_list
[      1172] Started resource esx_menu_dialog
[      1188] Started resource mapmanager
[      1203] Started resource chat
[      1219] Started resource spawnmanager
[      1219] Started resource fivem
[      1219] Started gametype Freeroam
[      1235] Started resource hardcap
[      1250] Started resource ■■■■■■■
[      1250] Started resource scoreboard
[      1266] Started resource playernames
[      1328] Started resource fivem-loading-sleek
[      1328] Authenticating server license key...
[      2188] Server license key authentication succeeded. Welcome!
[      2313] Resolved live-internal.fivem.net:30110 to IP
[      2313] Sending heartbeat to live-internal.fivem.net:30110
[      2344] 
[      2344] Current version: 5.0.0
[      2360] Updater version: 5.0.0
[      2360] 
[      2360] Everything is fine!
[      2360] 
[      2360] Started resource fivem-map-skater
[      2360] Started map fivem-map-skater
[      2469] Loaded MySqlConnector, Version=0.26.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1347746409
[      2531] hitch warning: frame time of 294 milliseconds
[      2578] Loaded System.Threading.Tasks.Extensions, Version=4.1.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1347746409
[      2813] Loaded System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1347746409
[     37110] Connecting:
[     38500] Sending heartbeat to live-internal.fivem.net:30110
[    218516] Sending heartbeat to live-internal.fivem.net:30110
[    222875] InvokeNative: execution failed: Argument at index 0 was null.
[    222938] Error running system event handling function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 00000000406b4b20 in script host failed.
[    222938] stack traceback:
[    222938] 	[C]: in upvalue '_in'
[    222938] 	citizen:/scripting/lua/natives_server.lua:141: in function 'GetPlayerName'
[    222938] 	server.lua:220: in upvalue 'handler'
[    222938] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
[    222938] stack traceback:
[    222938] 	[C]: in function 'error'
[    222938] 	citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
[    222938] 	citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>
[    398531] Sending heartbeat to live-internal.fivem.net:30110
1 Like

you don’t have the convar in the server.cfg or the direst to the mysql if using mysql

see here ----------------> set es_enableCustomData 1 add that to the server.cfg

Download esplugin_mysql5.6k
Make sure you have MySQL-Async installed and working
Import the SQL file that comes with esplugin_mysql
Set this convar in your server configuration: set es_enableCustomData 1
Make sure that your load order is correct, make sure essentialmode starts before esplugin_mysql and MySQL-Async starts before essentialmode
Start the server

On how to implement your own data saving take a look at esplugin_mysql

wouldn’t the address be local host? 127.0.0.1?

Error running call reference function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:351: Execution of native 00000000406b4b20 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:141: in function ‘GetPlayerName’
server.lua:339: 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:213: 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

What could be causing this error when I try to kick people?

Why would it be? What happened.

Hey. How i have tried everything. How do i use this command if i want both admins and mods be able to use the command in game?

-- Add a command that requires a specific group. The last 2 arguments need to be functions which both have 3 arguments. (source, command_args, Users[source])

TriggerEvent("es:addGroupCommand", command, group, callback, callbackfailed, {help here})

/ban comes out as text in the chat.

How do i set permissions on esadmin i got the server group just wont let me set server group

what this is ?
[ 292344] Failed to get instance for guid a7242855-0350-4cb5-a0fe-61021e7eafaa and iid 567634c6-3bdd-4d0e-af39-7472aed479b7: System.InvalidOperationException: Sequence contains no matching element

[ 292344] at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) [0x00011] in <48501e5f32e8491e924f8b8beae3e4f6>:0

[ 292344] at CitizenFX.Core.RuntimeManager.CreateObjectInstance (System.Guid guid, System.Guid iid) [0x00042] in :0

can someone please tell me how i can unban someone once i ban them?

What is the command for /ban? mine doesnt work

When you kick them just type in like EX: RDM and FailRP - Leighton H.