(NEW UPDATE) [Release] [ESX] Shops with bars (V.1.5) (NIGHTCLUBS)

roleplay
server
esx

#262

Hi there,

When I press E in the shop, the menu is not showing, and I can’t press back E.
I have all requirements.

DB = shops

DB = items (basic needs)


Hope someone can help me…

Greetings,
Jasper


#263

Post the error that is showing in the server log if there isn’t one then there should be one that shows in the client log.


#264

Maybe this is what?

I got this error in F8, when I press E in to open the shop:

main.lua:
https://pastebin.com/AxSPMJp9


#266

This works just fine on the latest version of ESX / Essentialmode


#267

Help mi 3d585c66d0ee302867c9e0cc90e9e95501684d83%20(2)


#268

Did you remove old shops table from database and run that new sql ?
Those have difference so basic shops table wont work with this.
Remember take backup from database if something goes wrong.


#269

I click on the item and I am not buying


#270

So the shop circles where you buy stuff are a) not showing stuff (error: Uncaught TypeError: cannot read property ‘scrollIntoView’ of undefined

and b) flashing over and over really fast.


#271

I’m working in this momment in the new update for this script, finishing codding, and i will test everything

Gald to be back


#272

NEW UPDATE IS OUT

  • V.1.3:

    • Sql files rewritten.
    • Some changes in the code itself.
    • Evertyhing was updated and tested.
    • Added cigars and ligthers (scrpit made by: @KandaSorata).
    • Changed the percentages of the drinks so each one will give you different alcohol numbers.

#273

Thank you, works great!


#274

Nice to know that sir xD


#275

COol1


#276

Keep getting this error when i press E to open the shops


The shop menu does not open and I no longer receive the prompts to press E to open the menu


#277

Might be an issue with an outdated es_extended, they added some match functions.


#278

What @bzndk said basically xD

this new version is made for the new versions of extended


#279

Hmmm, I thought we were on the newest version of extended. I’ll take a look and see what we are on and if I can update it.


#280

Its ok sir take your time, update the extended and essentialmode if needed (becareful with the database, the new versions of extended changed alot the database and primary keys so)

if you need help contact me xD


#281

Can anyone explain why I am getting this error when I installed your basic needs?

Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:62: attempt to index a nil value (field ‘?’)
stack traceback:
server/main.lua:62: 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: Unhandled error: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
at h (citizen:/scripting/v8/msgpack.js:29:15761)
at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
at unpack (citizen:/scripting/v8/main.js:20:33)
at citizen:/scripting/v8/main.js:51:11
at setImmediate (mysql-async.js:4962:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)


#282

Did you add the sql file from basicneeds and put it in the rigth spot in the server.cfg?