How to add items to esx_shops


#1

I want to add repair kit, beer, vodka, and coffee. I have added the items in the items table and shops table in the database. However, when I purchase these items, there is no use option. How would I fix this?


How to add repair kits to shop?
#2

You Can start by reading the Doc ? https://github.com/ESX-Org/esx-org.github.io/blob/master/_docs/es_extended/server-functions/esx.registerusableitem.md

EDIT by staff: working link: https://esx-org.github.io/es_extended/server/functions/registerusableitem/


#3

Ok I have added the code in the server/main.lua and added vodka to the database. However I want to add a vodka bottle drinking animation and have a drunk effect on the screen. Do you know anywhere were I can find the animations names or whatever is required in the client/main.lua?

This is what I have so far:

https://pastebin.com/TbVNh8Ck


#4

Hey buddy, can you fine the page again? The link seems to be broken!


#5

Where do you put the script


#6

Did you ever get this resolved