[Release] EssentialMode base

That’s also not XDDD … layers I’m explaining myself wrong … essential money looks like this
$ “money”
and I want it to come out
“money” $

thank you so much for help me

document.getElementById("cash").innerHTML = "<div><font style='color: rgb(0, 125, 0); font-weight: 700; margin-right: 6px;'>" + moneyIcon + "</font>" + addCommas(item.money);

?

Does anyone know why i cant access the wrapper functions? Im trying to access the user table in my script with this code - local user = exports.essentialmode:getUser() (mentioned above in the Wrappers section) but it wont work for me…

I get the error:

No such export getUser in resource essentialmode

Has anyone had the same issue?

Hello, since yesterday for no reason, the script crashes when I go on my server. is it the script or is my sql crashing?

[ERROR] [MySQL] An critical error happens on MySQL for query "SELECT * FROM users WHERE `identifier`=@identifier; {identifier=steam:1100001094acc5d}": Year, Month, and Day parameters describe an un-representable DateTime.   at System.DateTime.DateToTicks (System.Int32 year, System.Int32 month, System.Int32 day) [0x00077] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.DateTime..ctor (System.Int32 year, System.Int32 month, System.Int32 day) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at MySqlConnector.Core.Row.ParseDateTime (System.ArraySegment`1[T] value) [0x00079] in C:\Users\Matthias\Documents\GitHub\MySqlConnector\src\MySqlConnector\Core\Row.cs:450
  at MySqlConnector.Core.Row.GetValue (System.Int32 ordinal) [0x0030e] in C:\Users\Matthias\Documents\GitHub\MySqlConnector\src\MySqlConnector\Core\Row.cs:395
  at MySql.Data.MySqlClient.MySqlDataReader.GetValue (System.Int32 ordinal) [0x00000] in C:\Users\Matthias\Documents\GitHub\MySqlConnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlDataReader.cs:213
  at MySQLAsync.FetchAll+<ReaderAsync>d__2.MoveNext () [0x000dc] in <6f835765886c4fada3e5ffb1ffcd6998>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at MySQLAsync.Operation`1+<ExecuteAsync>d__7[TResult].MoveNext () [0x00169] in <6f835765886c4fada3e5ffb1ffcd6998>:0

And it’s the ‘esplugin-mysql’ script that makes the mistake, do you know how to help me?

nui://esx_menu_default/html/js/app.js:199, Uncaught TypeError: Cannot read property ‘namespace’ of undefined
How to fix?

Help me with this
[ 7995406] Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/db.lua:208: attempt to index a nil value
[ 7995469] stack traceback:
[ 7995484] server/db.lua:208: in upvalue ‘callback’
[ 7995500] server/db.lua:84: in local ‘userCallback’
[ 7995515] citizen:/scripting/lua/scheduler.lua:274: in upvalue ‘handler’
[ 7995531] citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
[ 7995547] stack traceback:
[ 7995562] [C]: in function ‘error’
[ 7995578] citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
[ 7995594] citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138

Here is the line of text it is referencing in the essentialmode server db.lua:
if json.decode(rText).docs[1] then callback(true) else callback(false) end

@Reaper_Gaming Json is a database. Might wanna clear your database and re-import your sql.sql

I find it, PM me i give you more informations :slight_smile:

hey i am spanish do you have the files translated in spanish¿ ty

Of course, but to translate is the work of each friend …

https://gyazo.com/c1ded4679b47e17623da40e7bfe66363

one that can help my i have to try and figure out what it is

https://gyazo.com/c1ded4679b47e17623da40e7bfe66363

[EssentialMode error] help plz
Current version: 4.6.3
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:13: attempt to concatenate a nil value (local ‘rText’)
stack traceback:
server/main.lua:13: in local ‘userCallback’
citizen:/scripting/lua/scheduler.lua:274: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Loaded System.Threading.Tasks.Extensions, Version=4.1.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_2003274655
Loaded System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_2003274655
hitch warning: frame time of 465 milliseconds

hello guys i got a problem with esx_shops i got the indicator i am pressing E and i can’t see any items to purchase
my items and shop db


1 Like

This isn’t the topic for ESX or esx_shops.

2 Likes

can you please tell me where to find the right topic then?cause i ve seen answers like this in many topics but no idea where to search.Thank you for your reply anyway.

1 Like

is it still possible to get a copy of essentialmode 4?

yes but need to search, i seen it just cant remember where…:grinning:


1 Like

I have same problem with es_admin2 commands

After typing “/admin” in chat this error appear:

Summary

Error running call reference function for resource es_admin2: citizen:/scripting/lua/scheduler.lua:351: server.lua:310: attempt to index a nil value (local ‘user’)
stack traceback:
server.lua:310: 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:160: 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

Can you make the bans log into a mysql database?