Installing VT-Coke
Resource Placement:
Download the
vt-coke
resource.Place the
vt-coke
folder within your server'sresources
directory.If you prefer, you can place the
vt-coke
folder inside another folder within yourresources
directory (e.g.,[drugs]/vt-coke
).
Item Configuration:
Navigate to your
qb-core/shared/items.lua
file.Add the following item definitions to the file:
-- Standard QB-Core Items cokebaggy = { name = 'cokebaggy', label = 'Bag of Coke', weight = 0, type = 'item', image = 'cocaine_baggy.png', unique = false, useable = true, shouldClose = true, description = 'To get happy real quick' }, coke_brick = { name = 'coke_brick', label = 'Coke Brick', weight = 1000, type = 'item', image = 'coke_brick.png', unique = false, useable = false, shouldClose = true, description = 'Heavy package of cocaine, mostly used for deals and takes a lot of space' }, -- Added Items empty_bag = { name = 'empty_bag', label = 'Empty Bag', weight = 0, type = 'item', image = 'weed_baggy_empty.png', unique = false, useable = true, shouldClose = true, description = 'A small empty bag' }, coke_powder = { name = 'coke_powder', label = 'Coke Powder', weight = 10, type = 'item', image = 'coke_powder.png', unique = true, useable = false, shouldClose = true, description = 'Heavy package of cocaine, mostly used for deals and takes a lot of space' },
Image Placement:
Make sure you have the
coke_powder.png
image file located within thevt-coke
folder.
Server Configuration:
Ensure the
vt-coke
resource (or the folder containing it) is added to your server's configuration file (usually namedserver.cfg
) to ensure it starts when your server launches.
Example server.cfg
entry:
ensure vt-coke
or
ensure [drugs]
Important:
Always make backups of your files before making any changes.
Restart your server after completing these steps for the changes to take effect.
If you have any further questions or issues during the installation process, feel free to ask!
Last updated