Installation
Do not skim the instructions. You need to follow every step of the Install Guide to make sure you're installing the script correctly
Dependency Installation
Jim_Bridge
Download
Get it free from github - https://github.com/jimathy/jim_bridge
Framework Installation
Add the script to the server resources
It is highly recommend to put this script folder in a new folder called
[jim]
Then add
ensure [jim]
AFTER your other scripts in your server.cfg
Ensure List
GO TO YOUR server.cfg
The ORDER of the load order is important, check information here
Resources (EXAMPLE)
# Default & Standalone Resources
# ------------------------------
ensure chat
ensure hardcap
ensure oxmysql
start ox_lib
# ESX Legacy Core
# ----------
ensure [core]
ensure [esx_addons]
start ox_inventory
start ox_target
ensure [standalone] # Place `jim_bridge` here
# ESX Addons
# ----------
# Other
ensure [jimextras] # Place `jim-payments` / `jim-consumables` / `jim-jobgarage` / `jim-djbooth` here
ensure [jim] # Place all other jim scripts here
IF YOU ALREADY HAVE A [jim] FOLDER, PUT IT IN THAT FOLDER YOU DO NOT NEED TO CREATE A NEW ONE.
Jim-Payments (Required/Optional)
This is the default system for payments in the script but can easily be changed in
client.lua
When triggered gets a list of the nearest players and lets you choose which one to charge
I class it as
optional
because you don't specifically need it if you have another you want to use.
Jim-Consumables (Optional)
If
jim-consumables
is installed, the script will attempt to reroute consumablesThe server side will automatically add the items to
jim-consumables
(edit any values you wish there)When used the item will trigger the
jim-script:client:consume
event which detects wether to use built in event's orjim-consuambles
(if found)
Job Installation
Import the esx_jobs.sql
into your database to add the jobs and their grades
INSERT INTO `jobs` (name, label) VALUES
('insertcoin', 'Insert Coin'),
('yellowjack', 'Yellow Jack'),
('cyberbar', 'Cyber Bar'),
('irishpub', 'Irish Pub'),
('splitsides', 'Split Sides'),
('bahama', 'Bahama Mamas'),
('limeys', 'Limeys'),
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('insertcoin',0,'recruit','Recruit',12,'{}','{}'),
('insertcoin',1,'novice','Novice',24,'{}','{}'),
('insertcoin',2,'experienced','Experienced',36,'{}','{}'),
('insertcoin',3,'advanced',"Advanced",48,'{}','{}'),
('insertcoin',4,'boss','Manager',0,'{}','{}')
('yellowjack',0,'recruit','Recruit',12,'{}','{}'),
('yellowjack',1,'novice','Novice',24,'{}','{}'),
('yellowjack',2,'experienced','Experienced',36,'{}','{}'),
('yellowjack',3,'advanced',"Advanced",48,'{}','{}'),
('yellowjack',4,'boss','Manager',0,'{}','{}')
('cyberbar',0,'recruit','Recruit',12,'{}','{}'),
('cyberbar',1,'novice','Novice',24,'{}','{}'),
('cyberbar',2,'experienced','Experienced',36,'{}','{}'),
('cyberbar',3,'advanced',"Advanced",48,'{}','{}'),
('cyberbar',4,'boss','Manager',0,'{}','{}')
('irishpub',0,'recruit','Recruit',12,'{}','{}'),
('irishpub',1,'novice','Novice',24,'{}','{}'),
('irishpub',2,'experienced','Experienced',36,'{}','{}'),
('irishpub',3,'advanced',"Advanced",48,'{}','{}'),
('irishpub',4,'boss','Manager',0,'{}','{}')
('splitsides',0,'recruit','Recruit',12,'{}','{}'),
('splitsides',1,'novice','Novice',24,'{}','{}'),
('splitsides',2,'experienced','Experienced',36,'{}','{}'),
('splitsides',3,'advanced',"Advanced",48,'{}','{}'),
('splitsides',4,'boss','Manager',0,'{}','{}')
('limeys',0,'recruit','Recruit',12,'{}','{}'),
('limeys',1,'novice','Novice',24,'{}','{}'),
('limeys',2,'experienced','Experienced',36,'{}','{}'),
('limeys',3,'advanced',"Advanced",48,'{}','{}'),
('limeys',4,'boss','Manager',0,'{}','{}')
;
Item Installation
These items work for both old and new qb-inventory
Item Images
Add the images from _install > images
to your inventory folder
eg.
qb-inventory > html > images
Item Data
If using qb-inventory
or similar, add the lines from qb_items.txt
to your qb-core > shared > items.lua
--Jim-Bars
--Cocktails
b52 = { name = "b52", label = "B-52", weight = 200, type = "item", image = "b52.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "B-52 Cocktail", thirst = math.random(20, 30) },
brussian = { name = "brussian", label = "Black Russian", weight = 200, type = "item", image = "brussian.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Black Russian Cocktail", thirst = math.random(20, 30) },
bkamikaze = { name = "bkamikaze", label = "Blue Kamikaze", weight = 200, type = "item", image = "bkamikaze.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Blue Kamikaze Cocktail", thirst = math.random(20, 30) },
cappucc = { name = "cappucc", label = "Cappuccinotini", weight = 200, type = "item", image = "cappucc.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cappuccinotini Cocktail", thirst = math.random(20, 30) },
ccookie = { name = "ccookie", label = "Cranberry Cookie", weight = 200, type = "item", image = "ccookie.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cranberry Cookie Cocktail", thirst = math.random(20, 30) },
iflag = { name = "iflag", label = "Irish Flag", weight = 200, type = "item", image = "iflag.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Irish Flag Cocktail", thirst = math.random(20, 30) },
kamikaze = { name = "kamikaze", label = "Kamikaze", weight = 200, type = "item", image = "kamikaze.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Kamikase Cocktail", thirst = math.random(20, 30) },
sbullet = { name = "sbullet", label = "Silver Bullet", weight = 200, type = "item", image = "sbullet.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Silver Bullet Cocktail", thirst = math.random(20, 30) },
voodoo = { name = "voodoo", label = "Voodoo", weight = 200, type = "item", image = "voodoo.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Voodoo Cocktail", thirst = math.random(20, 30) },
woowoo = { name = "woowoo", label = "Woo Woo", weight = 200, type = "item", image = "woowoo.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Woowoo Cocktail", thirst = math.random(20, 30) },
--Drink Ingredients
orange = { name = "orange", label = "Orange", weight = 200, type = "item", image = "orange.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "An Orange." },
lime = { name = "lime", label = "Lime", weight = 200, type = "item", image = "lime.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "A Lime." },
chocolate = { name = "chocolate", label = "Chocolate", weight = 200, type = "item", image = "chocolate.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Chocolate Bar", hunger = math.random(20, 30) },
cranberry = { name = "cranberry", label = "Cranberry Juice", weight = 200, type = "item", image = "cranberry.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cranberry Juice", thirst = math.random(20, 30) },
schnapps = { name = "schnapps", label = "Peach Schnapps", weight = 200, type = "item", image = "schnapps.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Peach Schnapps", thirst = math.random(20, 30) },
gin = { name = "gin", label = "Gin", weight = 200, type = "item", image = "gin.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Gin", thirst = math.random(20, 30) },
scotch = { name = "scotch", label = "Scotch", weight = 200, type = "item", image = "scotch.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Scotch", thirst = math.random(20, 30) },
rum = { name = "rum", label = "Rum", weight = 200, type = "item", image = "rum.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Rum", thirst = math.random(20, 30) },
icream = { name = "icream", label = "Irish Cream", weight = 200, type = "item", image = "icream.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Irish Cream Liquer", thirst = math.random(20, 30) },
amaretto = { name = "amaretto", label = "Amaretto", weight = 200, type = "item", image = "amaretto.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Amaretto", thirst = math.random(20, 30) },
curaco = { name = "curaco", label = "Curaco", weight = 200, type = "item", image = "curaco.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bottle of Curaco", thirst = math.random(20, 30) },
--BEERS
ambeer = { name = "ambeer", label = "AM Beer", weight = 100, type = "item", image = "ambeer.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
dusche = { name = "dusche", label = "Dusche Gold", weight = 100, type = "item", image = "dusche.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
logger = { name = "logger", label = "Logger Beer", weight = 100, type = "item", image = "logger.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
pisswasser = { name = "pisswasser", label = "Pißwasser", weight = 100, type = "item", image = "pisswaser1.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
pisswasser2 = { name = "pisswasser2", label = "Pißwasser Stout", weight = 100, type = "item", image = "pisswaser2.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
pisswasser3 = { name = "pisswasser3", label = "Pißwasser Pale Ale", weight = 100, type = "item", image = "pisswaser3.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(40, 50) },
--SODA
sprunk = { name = "sprunk", label = "Sprunk", weight = 100, type = "item", image = "sprunk.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(20, 30) },
sprunklight = { name = "sprunklight", label = "Sprunk Light", weight = 100, type = "item", image = "sprunklight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(20, 30) },
ecola = { name = "ecola", label = "eCola", weight = 100, type = "item", image = "ecola.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(20, 30) },
ecolalight = { name = "ecolalight", label = "eCola Light", weight = 100, type = "item", image = "ecolalight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", thirst = math.random(20, 30) },
crisps = { name = "crisps", label = "Crisps", weight = 100, type = "item", image = "chips.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", hunger = math.random(20, 30) },
Last updated