[Release] [WIP] ESX 2

is there a way to have this take money from the bank instead of pocket? when i change removemony to the removebank it doesn’t seem to function properly if i change the code at all.

1 Like

I have problem with script because i dont have hud in the upper right corner, hunger and water and my game is lagging

1 Like

Guys how do i disable the option to revive in the last position i died in es_extended im using esx. I would like to disable that without put esx_ambulancejob.

1 Like

very nice man good work

1 Like

You have to allow es_extended to use the add principal command. Its in the Server.cfg where Iu Set up your admins

1 Like

HELPPPP

1 Like

when i do /revive or someone dies and bleed out they get stuck in a black screen and it loads forever… this is the error i get

Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:351: server/classes/player.lua:419: attempt to get length of a nil value (field ‘components’)
stack traceback:
server/classes/player.lua:419: 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
[C]: in function ‘coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource esx_ambulancejob-master: 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 field ‘removeWeapon’
server/main.lua:53: 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 system event handling function for resource es_extended: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: 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 field ‘?’
server/functions.lua:33: in field ‘TriggerServerCallback’
server/common.lua:63: 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
hitch warning: frame time of 1370 milliseconds

this is line 419

for j=1, #self.loadout[i].components, 1 do
TriggerClientEvent(‘esx:removeWeaponComponent’, self.source, weaponName, self.loadout[i].components[j])
end

please help

1 Like

How do you add money to someone’s account when u are a admin

1 Like

COMMAND /setmoney [id] [type of money = cash or bank] [amount]

3 Likes

Im getting this error with esx ive had this before but io dont remember what i did to fix it. if anyone can figure this out id apreciate it.

1 Like

What to i do when i disconnect i spawn to some random spot not the spot we i was when i disconnected

1 Like

No i did not do that yet but do I need to add locales/it.lua then would essientialmode show in the couchdb?

1 Like

Hi! The drunk effect is too high, where can I reduce its duration? And when I dies, the effect still goes on.

1 Like

[ERROR] [MySQL] [es_extended] An error happens on MySQL for query “[object Object]”: getaddrinfo ENOTFOUND 127.0.0.01 127.0.0.01:3306
Error: (node:10000) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND 127.0.0.01 127.0.0.01:3306
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
--------------------
at Protocol._enqueue (mysql-async.js:5807:48)
at Protocol.handshake (mysql-async.js:5714:23)
at PoolConnection.connect (mysql-async.js:720:18)
at Pool.getConnection (mysql-async.js:4577:16)
at Pool.query (mysql-async.js:4731:8)
at Promise (mysql-async.js:4970:12)
at new Promise ()
at execute (mysql-async.js:4967:26)
at Object.global.exports [as callback] (mysql-async.js:4993:5)
at citizen:/scripting/v8/main.js:87:41
Error: (node:10000) 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:10000) [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.
How i can fix this?

2 Likes

change the host in your mysql connection string from “127.0.0.1” to “localhost”.

1 Like

i have script called rcon what is that?

1 Like

[MySQL] [Slow Query Warning] [es_extended] [1017ms] SELECT * FROM items
[ERROR] [MySQL] [es_extended] An error happens on MySQL for query “[object Object]”: connect ECONNREFUSED 127.0.0.1:3306
Error: (node:43604) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
--------------------
at Protocol._enqueue (mysql-async.js:5807:48)
at Protocol.handshake (mysql-async.js:5714:23)
at PoolConnection.connect (mysql-async.js:720:18)
at Pool.getConnection (mysql-async.js:4577:16)
at Pool.query (mysql-async.js:4731:8)
at Promise (mysql-async.js:4970:12)
at new Promise ()
at execute (mysql-async.js:4967:26)
at Object.global.exports [as callback] (mysql-async.js:4993:5)
at citizen:/scripting/v8/main.js:87:41
Error: (node:43604) 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: 2)
somebody can help`?

1 Like

https://gyazo.com/63dcc227749672e786dd60cd0cc0e983
Can someone help me with this problem?

1 Like

Hello, I have a problem with es_extended. When I join my server on localhost, my cash don’t show. I tried to install MoneyHUD but it didn’t solve my problem. If somebody could help me, I would really appreciate that! :slight_smile:
brak%20hasju

1 Like

And the .SQL check the first line

1 Like