Hello CFX Community!

Some time ago I edited the esx_shops UI from @Ali_Ebrahiminejad a bit, which I would now like to share with you. There might be a few small changes in the future.

Screenshot

If you want you can adapt the script to your wishes.

How to Install:

  1. Choose between the limit and the weight version
  2. Edit the esx_shops.sql according to your requirements
  3. Edit the config.lua if necessary
  4. Add ensure esx_shops to your server.cfg if it’s not in there yet
  5. Add pictures for your items in the shop in esx_shops/html/img
    It should be a .png file
  6. Restart your server and your Ready to use

You can download the script on GitHub
Have a nice rest of the day

6 Likes

That’s a redesign of the supermarket, why don’t you mention the author @Ali_Ebrahiminejad since you already use his code?

3 Likes

I have now made up for it. At the beginning I didn’t have everything in the text because this is my first release.
I have now edited it again.

1 Like

no problem. we are all here to help each other out.

greetings from Germany :relieved:

1 Like

Danke. Schöne Grüße zurück ^^

1 Like

looks good and more clean compare to og version :small_airplane:

1 Like

Thanks very much. I plan to adjust the spacing a little so that it looks suitable on all resolutions.

nice job

Well done buddy! :slightly_smiling_face:

Thank you.

Anyone know how to fix this?

What resolution are you playing at?
And do only you or all players have the problem?

1 Like

Great job man

I don’t know the css code of it, but using vw and vh (view width, view height) works better than % or px.

if this doesn’t solve the problem I’d recommend creating a javascript that adapts the width and height to the viewers needs.

If nothing works for you, you can also checkout my edit of the same script. It has a different design to it but its based of the same basics :relieved: (with a little more optimisation)

1 Like

how to add some more items?

i tryed to edit the html but it wont work.

on default shops its working for example item zeitung

You can add more items in your Database in the shops table.

there are many, but the shop itself shows only 4 entrys

You have to insert the enclosed SQL into your database. Then you have a table named Shops. And you can then adapt it to your needs. Screenshot by Lightshot

same to this. i entered the shops

example: the pickaxe isnt shown up there

Weird bc it should