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 hereIF 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.luaWhen triggered gets a list of the nearest players and lets you choose which one to charge
I class it as
optionalbecause you don't specifically need it if you have another you want to use.
Jim-Consumables (Optional)
If
jim-consumablesis 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:consumeevent which detects wether to use built in event's orjim-consuambles(if found)
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)
# QBCore & Extra stuff
ensure qb-core
ensure [qb]
ensure [standalone] # Place `jim_bridge` here
ensure [voice]
ensure [defaultmaps]
# Extra Jim Stuff
ensure [jimextras] # Place `jim-payments` / `jim-consumables` / `jim-jobgarage` / `jim-djbooth` here
ensure [jim] # Place all other jim scripts hereIF 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.luaWhen triggered gets a list of the nearest players and lets you choose which one to charge
I class it as
optionalbecause you don't specifically need it if you have another you want to use.
Jim-Consumables (Optional)
If
jim-consumablesis 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:consumeevent which detects wether to use built in event's orjim-consuambles(if found)
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)
# Qbox & Extra stuff
ensure ox_lib
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]
ensure [standalone] # Place `jim_bridge` here
ensure [voice]
ensure [npwd-apps]
ensure qbx_npwd
ensure npwd
# Extra Jim Stuff
ensure [jimextras] # Place `jim-payments` / `jim-consumables` / `jim-jobgarage` / `jim-djbooth` here
ensure [jim] # Place all other jim scripts hereIF 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.luaWhen triggered gets a list of the nearest players and lets you choose which one to charge
I class it as
optionalbecause you don't specifically need it if you have another you want to use.
Jim-Consumables (Optional)
If
jim-consumablesis 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:consumeevent which detects wether to use built in event's orjim-consuambles(if found)
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)
start chat
start sessionmanager
start pe-basicloading
start bob74_ipl
start pma-voice
start oxmysql
start ox_lib
start ox_core
start ox_target
start illenium-appearance
start ox_inventory
ensure [standalone] # Place `jim_bridge` here
# Extra Jim Stuff
ensure [jimextras] # Place `jim-payments` / `jim-consumables` / `jim-jobgarage` / `jim-djbooth` here
ensure [jim] # Place all other jim scripts here
# Extra Other Scripts HereIF 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.luaWhen triggered gets a list of the nearest players and lets you choose which one to charge
I class it as
optionalbecause you don't specifically need it if you have another you want to use.
Jim-Consumables (Optional)
If
jim-consumablesis 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:consumeevent 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
('upnatom', 'Up n Atom')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('upnatom',0,'recruit','Recruit',12,'{}','{}'),
('upnatom',1,'novice','Novice',24,'{}','{}'),
('upnatom',2,'experienced','Experienced',36,'{}','{}'),
('upnatom',3,'advanced',"Advanced",48,'{}','{}'),
('upnatom',4,'boss','Manager',0,'{}','{}')
;Add the lines from qb_jobs.txt to your qb-core > shared > jobs.lua
['upnatom'] = {
label = "Up n Atom",
defaultDuty = true,
grades = {
['0'] = { name = 'Recruit', payment = 50 },
['1'] = { name = 'Novice', payment = 75 },
['2'] = { name = 'Experienced', payment = 100 },
['3'] = { name = 'Advanced', payment = 125 },
['4'] = { name = 'Manager', isboss = true, payment = 150 },
},
},Add the lines from qb_jobs.txt to your qbx_core > shared > jobs.lua
['upnatom'] = {
label = "Up n Atom",
defaultDuty = true,
grades = {
[0] = { name = 'Recruit', payment = 50 },
[1] = { name = 'Novice', payment = 75 },
[2] = { name = 'Experienced', payment = 100 },
[3] = { name = 'Advanced', payment = 125 },
[4] = { name = 'Manager', isboss = true, payment = 150 },
},
},Import the ox_jobs.sql into your database to add the jobs and their grades
INSERT IGNORE INTO `account_roles` (`name`) VALUES
('novice'),
('experienced'),
('advanced'),
('manager'),
('owner');
INSERT IGNORE INTO `ox_groups` ( `name`, `label`, `colour`, `hasAccount`) VALUES
( 'upnatom', 'Up n Atom', NULL, 1 );
INSERT IGNORE INTO `ox_group_grades` (`group`, `grade`, `label`, `accountRole`) VALUES
('upnatom', 0, 'Recruit', NULL),
('upnatom', 1, 'Novice', 'novice'),
('upnatom', 2, 'Experienced', 'experienced'),
('upnatom', 3, 'Advanced', 'advanced'),
('upnatom', 4, 'Manager', 'manager'),
('upnatom', 5, 'Owner', 'owner');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-UPNATOM --
chickenbreast = { name = "chickenbreast", label = "Raw Chicken Breast", weight = 100, type = "item", image = "farming_chickenbreast.png", unique = false, useable = true, shouldClose = true, description = "Fresh chicken breast"},
tripleburger = { name = "tripleburger", label = "The Triple Burger", weight = 100, type = "item", image = "tripleburger.png", unique = false, useable = true, shouldClose = true, description = "Triple-stacked beef burger"},
baconcheesemelt = { name = "baconcheesemelt", label = "Bacon-Triple Cheese Melt", weight = 100, type = "item", image = "baconcheesemelt.png", unique = false, useable = true, shouldClose = true, description = "Grilled cheese melt with bacon"},
chillidog = { name = "chillidog", label = "Footlong Chilli dog", weight = 100, type = "item", image = "chillidog.png", unique = false, useable = true, shouldClose = true, description = "Footlong sausage topped with chilli"},
atomfries = { name = "atomfries", label = "Atom Fries", weight = 100, type = "item", image = "atomfries.png", unique = false, useable = true, shouldClose = true, description = "Spiced crispy fries"},
chickenfillet = { name = "chickenfillet", label = "Chicken Fillets", weight = 100, type = "item", image = "chickenbreasts.png", unique = false, useable = true, shouldClose = true, description = "Fried chicken breast strips"},
grilledchicken = { name = "grilledchicken", label = "Chicken Sandwich", weight = 100, type = "item", image = "chickensandwich.png", unique = false, useable = true, shouldClose = true, description = "Grilled chicken sandwich"},
creamyshake = { name = "creamyshake", label = "Extra Creamy Jumbo Shake", weight = 100, type = "item", image = "atomshake.png", unique = false, useable = true, shouldClose = true, description = "Thick creamy milkshake"},
atomsoda = { name = "atomsoda", label = "Atom Soda", weight = 100, type = "item", image = "atomsoda.png", unique = false, useable = true, shouldClose = true, description = "Fizzy radioactive soda"},
orangotang = { name = "orangotang", label = "Orangotang", weight = 100, type = "item", image = "orangotang.png", unique = false, useable = true, shouldClose = true, description = "Orangotang"},
raine = { name = "raine", label = "Raine", weight = 100, type = "item", image = "raine.png", unique = false, useable = true, shouldClose = true, description = "Refreshing Raine beverage"},
junkdrink = { name = "junkdrink", label = "Junk", weight = 100, type = "item", image = "junkdrink.png", unique = false, useable = true, shouldClose = true, description = "Questionable junk drink"},
burgerpatty = { name = "burgerpatty", label = "Patty", weight = 100, type = "item", image = "burgerpatty.png", unique = false, useable = false, shouldClose = true, description = "Uncooked burger patty"},
breadslice = { name = "breadslice", label = "Slice of Bread", weight = 100, type = "item", image = "breadslice.png", unique = false, useable = true, shouldClose = true, description = "A plain slice of bread"},
cheddar = { name = "cheddar", label = "Cheese", weight = 100, type = "item", image = "cheddar.png", unique = false, useable = false, shouldClose = true, description = "Cheddar cheese slice"},
lettuce = { name = "lettuce", label = "Lettuce", weight = 100, type = "item", image = "lettuce.png", unique = false, useable = false, shouldClose = true, description = "Fresh leafy lettuce"},
tomato = { name = "tomato", label = "Tomato", weight = 100, type = "item", image = "tomato.png", unique = false, useable = false, shouldClose = true, description = "Ripe tomato"},
burgerbun = { name = "burgerbun", label = "Burger Bun", weight = 100, type = "item", image = "burgerbun.png", unique = false, useable = false, shouldClose = true, description = "Bun for burgers"},
hotdogbun = { name = "hotdogbun", label = "Hotdog Bun", weight = 100, type = "item", image = "hotdogbun.png", unique = false, useable = false, shouldClose = true, description = "Soft hotdog bun"},
chillimince = { name = "chillimince", label = "Chillimince", weight = 100, type = "item", image = "chillimince.png", unique = false, useable = false, shouldClose = true, description = "Spiced chili mince"},
butter = { name = "butter", label = "Butter", weight = 100, type = "item", image = "farming_butter.png", unique = false, useable = false, shouldClose = true, description = "Creamy farm butter"},
milk = { name = "milk", label = "Milk", weight = 100, type = "item", image = "burger-milk.png", unique = false, useable = false, shouldClose = true, description = "Bottle of milk"},
cream = { name = "cream", label = "Cream", weight = 100, type = "item", image = "cream.png", unique = false, useable = false, shouldClose = true, description = "Dairy cream"},
burgermeat = { name = "burgermeat", label = "Burger Meat", weight = 100, type = "item", image = "burgermeat.png", unique = false, useable = false, shouldClose = true, description = "Minced meat for burgers"},
hotdogmeat = { name = "hotdogmeat", label = "Hotdog Meat", weight = 100, type = "item", image = "hotdogmeat.png", unique = false, useable = false, shouldClose = true, description = "Hotdog sausage meat"},
slicedtomato = { name = "slicedtomato", label = "Sliced Tomato", weight = 100, type = "item", image = "slicedtomato.png", unique = false, useable = false, shouldClose = true, description = "Fresh tomato slices"},
slicedpotato = { name = "slicedpotato", label = "Sliced Potato", weight = 100, type = "item", image = "burger-slicedpotato.png", unique = false, useable = false, shouldClose = true, description = "Raw potato slices"},
rawhotdog = { name = "rawhotdog", label = "Raw Hotdog", weight = 100, type = "item", image = "rawhotdog.png", unique = false, useable = false, shouldClose = true, description = "Uncooked hotdog"},
potato = { name = "potato", label = "Potato", weight = 100, type = "item", image = "potato.png", unique = false, useable = false, shouldClose = true, description = "Unpeeled potato"},
bacon = { name = "bacon", label = "Bacon", weight = 100, type = "item", image = "bacon.png", unique = false, useable = false, shouldClose = true, description = "Cured bacon strip"},
rawbacon = { name = "rawbacon", label = "Raw Bacon", weight = 100, type = "item", image = "rawbacon.png", unique = false, useable = false, shouldClose = true, description = "Uncooked bacon"},
sprunk = { name = "sprunk", label = "Sprunk", weight = 100, type = "item", image = "sprunk.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Lemon-lime soda"},
sprunklight = { name = "sprunklight", label = "Sprunk Light", weight = 100, type = "item", image = "sprunklight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Low-calorie soda"},
ecola = { name = "ecola", label = "eCola", weight = 100, type = "item", image = "ecola.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cola drink"},
ecolalight = { name = "ecolalight", label = "eCola Light", weight = 100, type = "item", image = "ecolalight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Diet cola drink"},This applies to any framework using ox_inventory
Currently while using ESX my scripts only support ox_inventory
Item Images
Copy and paste the images from _install > images to your inventory folder
eg.
ox_inventory > web > images
Item Data
Add the ox_items.txt to your ox_inventory > data > items.lua
-- JIM-UPNATOM --
tripleburger = { label = "The Triple Burger", weight = 100, stack = true, close = true, description = "Triple-stacked beef burger",
client = { image = "tripleburger.png", event = "jim-upnatom:client:Consume", }
},
baconcheesemelt = { label = "Bacon-Triple Cheese Melt", weight = 100, stack = true, close = true, description = "Grilled cheese melt with bacon",
client = { image = "baconcheesemelt.png", event = "jim-upnatom:client:Consume", }
},
chillidog = { label = "Footlong Chilli dog", weight = 100, stack = true, close = true, description = "Footlong sausage topped with chilli",
client = { image = "chillidog.png", event = "jim-upnatom:client:Consume", }
},
-- Chicken Items
chickenbreast = { label = "Raw Chicken Breast", weight = 100, stack = true, close = true, description = "Fresh chicken breast",
client = { image = "farming_chickenbreast.png", }
},
chickenfillet = { label = "Chicken Fillets", weight = 100, stack = true, close = true, description = "Fried chicken breast strips",
client = { image = "chickenbreasts.png", event = "jim-upnatom:client:Consume", }
},
grilledchicken = { label = "Chicken Sandwich", weight = 100, stack = true, close = true, description = "Grilled chicken sandwich",
client = { image = "chickensandwich.png", event = "jim-upnatom:client:Consume", }
},
-- Sides & Fries
atomfries = { label = "Atom Fries", weight = 100, stack = true, close = true, description = "Spiced crispy fries",
client = { image = "atomfries.png", event = "jim-upnatom:client:Consume", }
},
-- Drinks
creamyshake = { label = "Extra Creamy Jumbo Shake", weight = 100, stack = true, close = true, description = "Thick creamy milkshake",
client = { image = "atomshake.png", event = "jim-upnatom:client:Consume", }
},
atomsoda = { label = "Atom Soda", weight = 100, stack = true, close = true, description = "Fizzy radioactive soda",
client = { image = "atomsoda.png", event = "jim-upnatom:client:Consume", }
},
raine = { label = "Raine", weight = 100, stack = true, close = true, description = "Refreshing Raine beverage",
client = { image = "raine.png", event = "jim-upnatom:client:Consume", }
},
junkdrink = { label = "Junk", weight = 100, stack = true, close = true, description = "Questionable junk drink",
client = { image = "junkdrink.png", event = "jim-upnatom:client:Consume", }
},
sprunk = { label = "Sprunk", weight = 100, stack = true, close = true, description = "Lemon-lime soda",
client = { image = "sprunk.png", event = "jim-upnatom:client:Consume", }
},
sprunklight = { label = "Sprunk Light", weight = 100, stack = true, close = true, description = "Low-calorie soda",
client = { image = "sprunklight.png", event = "jim-upnatom:client:Consume", }
},
ecola = { label = "eCola", weight = 100, stack = true, close = true, description = "Cola drink",
client = { image = "ecola.png", event = "jim-upnatom:client:Consume", }
},
ecolalight = { label = "eCola Light", weight = 100, stack = true, close = true, description = "Diet cola drink",
client = { image = "ecolalight.png", event = "jim-upnatom:client:Consume", }
},
orangotang = { label = "Orangotang", weight = 100, stack = true, close = true, description = "Orangotang",
client = { image = "orangotang.png", event = "jim-upnatom:client:Consume", }
},
coffee = { label = "Coffee", weight = 200, stack = true, close = true, description = "Pump 4 Caffeine",
client = { image = "coffee.png", event = "jim-upnatom:client:Consume", }
},
water_bottle = { label = "Water Bottle", weight = 300, stack = true, close = true, description = "For all the thirsty out there",
client = { image = "water.png", event = "jim-upnatom:client:Consume", }
},
-- Ingredients
cheddar = { label = "Cheese", weight = 100, stack = true, close = true, description = "Cheddar cheese slice",
client = { image = "cheddar.png", event = "jim-upnatom:client:Consume", }
},
lettuce = { label = "Lettuce", weight = 100, stack = true, close = true, description = "Fresh leafy lettuce",
client = { image = "lettuce.png", event = "jim-upnatom:client:Consume", }
},
tomato = { label = "Tomato", weight = 100, stack = true, close = true, description = "Ripe tomato",
client = { image = "tomato.png", event = "jim-upnatom:client:Consume", }
},
slicedtomato = { label = "Sliced Tomato", weight = 100, stack = true, close = true, description = "Fresh tomato slices",
client = { image = "slicedtomato.png", event = "jim-upnatom:client:Consume", }
},
chillimince = { label = "Chillimince", weight = 100, stack = true, close = true, description = "Spiced chili mince",
client = { image = "chillimince.png", event = "jim-upnatom:client:Consume", }
},
-- Raw Ingredients
burgerpatty = { label = "Patty", weight = 100, stack = true, close = true, description = "Uncooked burger patty",
client = { image = "burgerpatty.png", event = "jim-upnatom:client:Consume", }
},
burgermeat = { label = "Burger Meat", weight = 100, stack = true, close = true, description = "Minced meat for burgers",
client = { image = "burgermeat.png", event = "jim-upnatom:client:Consume", }
},
hotdogmeat = { label = "Hotdog Meat", weight = 100, stack = true, close = true, description = "Hotdog sausage meat",
client = { image = "hotdogmeat.png", event = "jim-upnatom:client:Consume", }
},
rawhotdog = { label = "Raw Hotdog", weight = 100, stack = true, close = true, description = "Uncooked hotdog",
client = { image = "rawhotdog.png", event = "jim-upnatom:client:Consume", }
},
hotdogbun = { label = "Hotdog Bun", weight = 100, stack = true, close = true, description = "Soft hotdog bun",
client = { image = "hotdogbun.png", event = "jim-upnatom:client:Consume", }
},
burgerbun = { label = "Burger Bun", weight = 100, stack = true, close = true, description = "Bun for burgers",
client = { image = "burgerbun.png", event = "jim-upnatom:client:Consume", }
},
breadslice = { label = "Slice of Bread", weight = 100, stack = true, close = true, description = "A plain slice of bread",
client = { image = "breadslice.png", event = "jim-upnatom:client:Consume", }
},
butter = { label = "Butter", weight = 100, stack = true, close = true, description = "Creamy farm butter",
client = { image = "farming_butter.png", event = "jim-upnatom:client:Consume", }
},
milk = { label = "Milk", weight = 100, stack = true, close = true, description = "Bottle of milk",
client = { image = "burger-milk.png", event = "jim-upnatom:client:Consume", }
},
cream = { label = "Cream", weight = 100, stack = true, close = true, description = "Dairy cream",
client = { image = "cream.png", event = "jim-upnatom:client:Consume", }
},
bacon = { label = "Bacon", weight = 100, stack = true, close = true, description = "Cured bacon strip",
client = { image = "bacon.png", event = "jim-upnatom:client:Consume", }
},
rawbacon = { label = "Raw Bacon", weight = 100, stack = true, close = true, description = "Uncooked bacon",
client = { image = "rawbacon.png", event = "jim-upnatom:client:Consume", }
},
slicedpotato = { label = "Sliced Potato", weight = 100, stack = true, close = true, description = "Raw potato slices",
client = { image = "burger-slicedpotato.png", event = "jim-upnatom:client:Consume", }
},
potato = { label = "Potato", weight = 100, stack = true, close = true, description = "Unpeeled potato",
client = { image = "potato.png", event = "jim-upnatom:client:Consume", }
},Last updated