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:
- Choose between the limit and the weight version
- Edit the esx_shops.sql according to your requirements
- Edit the config.lua if necessary
- Add
ensure esx_shops to your server.cfg if it’s not in there yet
- Add pictures for your items in the shop in esx_shops/html/img
It should be a .png file
- 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 
1 Like
Danke. Schöne Grüße zurück ^^
1 Like
Renzuzu
6
looks good and more clean compare to og version 
1 Like
Thanks very much. I plan to adjust the spacing a little so that it looks suitable on all resolutions.
Anyone know how to fix this?
What resolution are you playing at?
And do only you or all players have the problem?
1 Like
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
(with a little more optimisation)
1 Like
Pfann
15
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.
Pfann
17
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
Pfann
19
same to this. i entered the shops
example: the pickaxe isnt shown up there