[Release] [WIP] ESX 2

I’m trying to display the money a player have in his pocket… everything work fine but let say I have 5000$ and I buy something… it does not update… it will stay at 5000$ but on server side the money is taken

    if xPlayer.accounts[i].name == 'money' then
    local accountTpl = '<img src="img/accounts/cash.png"/>&nbsp;{{money}}&nbsp;&nbsp;&nbsp;&nbsp;'

    ESX.UI.HUD.RegisterElement(ESX.PlayerData.money, i-1, 0, accountTpl, {
      money = 0
    })

    ESX.UI.HUD.UpdateElement(ESX.PlayerData.money, {
      money = ESX.PlayerData.money    })

people are not getting paid for some reason… Idk wtf is going on

I updated es_extended and then all commands stopped working!

^3Couldn’t find resource esx_menu_default.^7
^3Couldn’t find resource esx_menu_list.^7
^3Couldn’t find resource esx_menu_dialog.^7

You need to install those three resources:

Can i get help? //char//

some commands you need to do in the f8 menu

How to i add so all players can cuff,drag and search through people

i f*cked my chat, could someone upload the original chat folder?

resources/[system]/chat

Hi!

Receiving this error without knowing what change I did. Didn’t change anything to the es_extended to my knowledge. Using zap-hosting and don’t know if it is something wrong with essentialmode. Can’t tell from the errors. Here’s what it looks like (you can ignore the thing about the esx_shop, zap-hosting told me it doesn’t work for anyone and no one has found a fix for it yet).

Basically it’s telling me i’m not using the latest version from essentialmode (that plugin I installed via a one-click-installer on zap-hosting, should I maybe reinstall it?). The next thing is that es_extended says it can’t find the job “cartel”. But I deleted that one from the MySQL and also the folder that contained the cartel resource.

Version mismatch, you are currently not using the newest stable version of essentialmode. Please update

Loaded MySqlConnector, Version=0.36.1.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92 into ScriptDomain_1073079988
hitch warning: frame time of 277 milliseconds
EasyAdmin (EasyAdmin) is up to date!
Loaded System.Threading.Tasks.Extensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1073079988
Loaded System.Buffers, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1073079988
hitch warning: frame time of 460 milliseconds
Connecting: Krita en 5a
Sending heartbeat to live-internal.fivem.net:30110
Error running call reference function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:351: server/main.lua:31: table index is nil
stack traceback:
        server/main.lua:31: 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] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM shops {=}"
Access denied for command add_principal.
Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:351: server/main.lua:190: attempt to index a nil value (field '?')
stack traceback:
        server/main.lua:190: 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] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM `jobs` WHERE `name` = @name {@name=cartel}"

So i got a zap hosting server and i have an issue installing the predefined esx pack, it installs properly and everything, but when u boot up the server i get this error with esx_society

Error parsing script server/main.lua in resource esx_society: server/main.lua:266: <break> at line 239 not inside a loop

since i havent really touched anything i dont know whats causing it, i could use a little help.
Thanks

That’s an error in the code of the file that they’re providing you. You’d be much better off reporting the issue to ZAP so they can fix your issue as well as be made aware of the bug for other users.

I’ve got a problem with EssentialMode too. When I first login in the server, create my character, quit and get back to the server again I need to do it again and in-game console says I don’t have the Table essentialmode.characters. There is a way to solve this? I’ve tried to create this table but everytime says I’m creating a MariaDB instead MySQL

Hi there guys!

I’m having a problem with ESX shops. It’s a fresh ESX server with few resources. ESX Shops spits out the following on server start:

Line 43 of /server/main.lua:

function LoadShop()
	local itemResult = MySQL.Sync.fetchAll('SELECT * FROM items')
	local shopResult = MySQL.Sync.fetchAll('SELECT * FROM shops')

	local itemInformation = {}
	for i=1, #itemResult, 1 do

		if itemInformation[itemResult[i].name] == nil then
			itemInformation[itemResult[i].name] = {}
		end

		itemInformation[itemResult[i].name].label = itemResult[i].label
		itemInformation[itemResult[i].name].limit = itemResult[i].limit
	end

	for i=1, #shopResult, 1 do
		if ShopItems[shopResult[i].store] == nil then
			ShopItems[shopResult[i].store] = {}
		end

		if itemInformation[shopResult[i].item].limit == -1 then -- THIS IS LINE 43
			itemInformation[shopResult[i].item].limit = 30
		end

		table.insert(ShopItems[shopResult[i].store], {
			label = itemInformation[shopResult[i].item].label,
			item  = shopResult[i].item,
			price = shopResult[i].price,
			limit = itemInformation[shopResult[i].item].limit
		})
	end
end

I walked into a shop and although the circle is there, when I open it, the store is empty.

Shops table:

I’m unable to purchase anything, it seems.

Does anyone have a fix for the error and shops that don’t have anything?

Thanks for your time!

Im having the same problem, shops arent showing anything to Purchase. Also, when I try to change the keybind in ES_Extended for the inventory from F2, to F9 it still stays on F2. Can I get some help with this please?

Check if you got the items in shops table and in items table too. That’s what help me though.

But I need some help too guys. When I want to start a command “/giveweapon” or “/giveitem” only thing I got is the Error running call reference function for resource es_extended and essential… It’s is like that:
Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:351: server/commands.lua:167: bad argument #1 to ‘upper’ (string expected, got nil)
stack traceback:
[C]: in function ‘string.upper’
server/commands.lua:167: 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:235: 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
Any help? I was trying to figure it out by myself but I can’t ;/

i cant get mine to work even tho it says started resource es_extended

I have it installed,and after i edited chat and translated it,it worked fine,but after a restart it all just resets and its so annoying,can anybody tell me why and how to fix it

Could u contact me on discord: Code 0#4238 so u can help me install the mod pls. Thanks