[Release] EssentialMode base


#2474

Is it possible to use mysql instead of couchdb and how? If not, how do I configure couchdb with the tables?


#2475

i’m getting an error

Error: (node:10952) UnhandledPromiseRejectionWarning: Error: No valid connection string found
at parseConnectingString (mysql-async.js:5058:18)
at global.on (mysql-async.js:5067:18)
at citizen:/scripting/v8/main.js:193:28
Error: (node:10952) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Error: (node:10952) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


#2476

you have to set the mysql connection string in server.cfg look it up on the EssentialMode SQL installation instructions


#2477

How do you even conect with mysql?? I just don’t get that…


#2478

Could not find dependency essentialmode for resource es_admin-master.
Couldn’t start resource es_admin-master.


#2480

Have you got a solution for this? I cant move in game after i close the home menu either


#2481

@Hanzalah you apparently have to go into es_admin, go into the ui folder. go to where index.html and edit the index.html. Anywhere in the code that says es_admin2 needs to be changed to es_admin to fix the issue. Or you can be lazy and replace the index.html with mine and the issue is resolved: index.html (6.3 KB)


#2482

When I type /admin in chat it gives me this error. I am working for 4 hours straight to fix this. PLEASE HELP. I tried so much, everything is properly setup I don’t know why I keep getting this error.

InvokeNative: execution failed: Argument at index 1 was null.
Error running call reference function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:403: Execution of native 000000002f7a49e6 in script host failed.
stack traceback:
        [C]: in upvalue '_in'
        citizen:/scripting/lua/natives_server.lua:405: in function 'TriggerClientEventInternal'
        (...tail calls...)
        server.lua:414: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>
cfx> Error running call reference function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:403: 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:626: in upvalue 'callback'
        server/main.lua:275: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>

#2483

Maybe I overlooked this, but… One of my admins banned someone using es_admin2 and I cant find a folder or file that has the bans in it to remove it. How do I go about unbanning someone?


#2484

#2485

Ok I got a should be simple problem, everything works fine commands , admin etc but when I press “home” esadmin opens and a white cursor appears however when I exit the white cursor is still there and I’m frozen I ave to crash game out with task manager… my thoughts is it’s another script bind to the home key an I guess the only way to find it is to disable all addon resources?


#2486

Invalid ref call attempt for any command people use. They can do one command but then it doesn’t work anymore until i restart. Any ideas?


#2487

Did you able to fix it ?

If so how did you, please I can’t write any command in chat like /admin, /bring etc…


#2488

Reinstall server and add couple addons at the time as one of them couls be messing up the es.admin


#2489

Nope. Didin’t work. Here’s the error and server.cfg. Tell me if you find something wrong. I just have es_admin2 and essentialmode in my resources folder.

Server.CFG

# 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:30120"
endpoint_add_udp "0.0.0.0:30120"




# These resources will start by default.

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start rconlog
start scoreboard
start playernames
start essentialmode
start es_admin2




# This allows players to use scripthook based plugins such as lambda menu.
# Set this to 0 to disallow scripthook.
sv_scriptHookAllowed 0

# Uncomment this to enable RCON. Make sure to change the password.
#rcon_password changeme

# A comma-separated list of tags for your server.
# For example:
# - sets tags "drifting, cars, racing"
# Or:
# - sets tags "roleplay, military, tanks"
sets tags "default"

# Set an optional server info and connecting banner image url.
# Size doesn't matter, any banner sized image will be fine.
#sets banner_detail "http://url.to/image.png"
#sets banner_connecting "http://url.to/image.png"

# Set your server's hostname
sv_hostname "RepublicM"

# Nested configs!
#exec server_internal.cfg

# Loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png

# convars which can be used in scripts
set temp_convar "hey world!"

# Uncomment this line if you do not want your server to be listed in the server browser.
#sv_master1 ""

# Want to only allow players authenticated with a third-party provider like Steam?
# Don't forget Social Club is a third party provider too!
#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:110000112345678 group.admin # add the admin to the group

# Hide player endpoints in external log output.
sv_endpointprivacy true

# Server player slot limit (must be between 1 and 32)
sv_maxclients 32

# License key for your server (https://keymaster.fivem.net)
sv_licenseKey 1c570hpko2d5m1umh02fpt9hcymgqyxz

The Error I got When I type /admin

Error running call reference function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:403: server.lua:362: attempt to index a nil value (local 'user')
stack traceback:
        server.lua:362: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>
Error running call reference function for resource essentcfx> ialmode: citizen:/scripting/lua/scheduler.lua:403: 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:626: in upvalue 'callback'
        server/main.lua:186: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>

#2490

Are you self hosting or using zap hosting?


#2491

Home hosting. Yes it is self.


#2492

Try redownloading the server files and download latest essiamtels. I am using zap hosting and it fixed it when y reinstalled server fully as shen i tries reinstalling resouces it had same issue soni wiped server fully. Make a backup and download the server files:)


#2493

Will do. I write the result.


#2494

Ok dont forget a backup