Installation
Last updated
Last updated
Do not skim the instructions. You need to follow every step of the Install Guide to make sure you're installing the script correctly
This is required for the script to function, it won't work without it
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
GO TO YOUR server.cfg
The ORDER of the load order is important, check information
# 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.
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.
If jim-consumables
is installed, the script will attempt to reroute consumables
The 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 or jim-consuambles
(if found)
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
GO TO YOUR server.cfg
The ORDER of the load order is important, check information here
# 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 here
IF YOU ALREADY HAVE A [jim] FOLDER, PUT IT IN THAT FOLDER YOU DO NOT NEED TO CREATE A NEW ONE.
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.
If jim-consumables
is installed, the script will attempt to reroute consumables
The 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 or jim-consuambles
(if found)
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
GO TO YOUR server.cfg
The ORDER of the load order is important, check information here
# 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 here
IF YOU ALREADY HAVE A [jim] FOLDER, PUT IT IN THAT FOLDER YOU DO NOT NEED TO CREATE A NEW ONE.
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.
If jim-consumables
is installed, the script will attempt to reroute consumables
The 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 or jim-consuambles
(if found)
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
GO TO YOUR server.cfg
The ORDER of the load order is important, check information here
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 Here
IF YOU ALREADY HAVE A [jim] FOLDER, PUT IT IN THAT FOLDER YOU DO NOT NEED TO CREATE A NEW ONE.
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.
If jim-consumables
is installed, the script will attempt to reroute consumables
The 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 or jim-consuambles
(if found)
Import the esx_jobs.sql
into your database to add the jobs and their grades
INSERT INTO `jobs` (name, label) VALUES
('popsdiner', 'Pops Diner')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('popsdiner',0,'recruit','Recruit',12,'{}','{}'),
('popsdiner',1,'novice','Novice',24,'{}','{}'),
('popsdiner',2,'experienced','Experienced',36,'{}','{}'),
('popsdiner',3,'advanced',"Advanced",48,'{}','{}'),
('popsdiner',4,'boss','Manager',0,'{}','{}')
;
Add the lines from qb_jobs.txt
to your qb-core > shared > jobs.lua
['popsdiner'] = {
label = "Pop's Diner",
defaultDuty = false,
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
['popsdiner'] = {
label = "Pop's Diner",
defaultDuty = false,
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
( 'pizzathis', 'Pizza This', NULL, 1 );
INSERT IGNORE INTO `ox_group_grades` (`group`, `grade`, `label`, `accountRole`) VALUES
('pizzathis', 0, 'Recruit', NULL),
('pizzathis', 1, 'Novice', 'novice'),
('pizzathis', 2, 'Experienced', 'experienced'),
('pizzathis', 3, 'Advanced', 'advanced'),
('pizzathis', 4, 'Manager', 'manager'),
('pizzathis', 5, 'Owner', 'owner');
These items work for both old and new qb-inventory
Add the images from _install > images
to your inventory folder
eg. qb-inventory > html > images
If using qb-inventory
or similar, add the lines from qb_items.txt
to your qb-core > shared > items.lua
-- JIM-POPSDINER --
baconeggs = { name = "baconeggs", label = "Bacon and Eggs", weight = 100, type = "item", image = "baconeggs.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Classic breakfast combo"},
bltsandwich = { name = "bltsandwich", label = "BLT Sandwich", weight = 100, type = "item", image = "bltsandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Bacon, lettuce, and tomato sandwich"},
cheeseburger = { name = "cheeseburger", label = "Cheese Burger", weight = 100, type = "item", image = "cheeseburger.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Burger with melted cheese"},
cheesesandwich = { name = "cheesesandwich", label = "Cheese Sandwich", weight = 100, type = "item", image = "cheesesandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Simple cheese-filled sandwich"},
eggsandwich = { name = "eggsandwich", label = "Eggs Sandwich", weight = 100, type = "item", image = "eggsandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Eggs on toasted bread"},
grilledwrap = { name = "grilledwrap", label = "Grilled Wrap", weight = 100, type = "item", image = "grilledwrap.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Grilled meat and veggies in a wrap"},
hamburger = { name = "hamburger", label = "Hamburger", weight = 100, type = "item", image = "hamburger.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Classic hamburger"},
hamcheesesandwich = { name = "hamcheesesandwich", label = "Ham and Cheese Sandwich", weight = 100, type = "item", image = "hamcheesesandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Ham and cheese in a sandwich"},
hamsandwich = { name = "hamsandwich", label = "Ham Sandwich", weight = 100, type = "item", image = "hamsandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sliced ham sandwich"},
ranchwrap = { name = "ranchwrap", label = "Ranch Wrap", weight = 100, type = "item", image = "ranchwrap.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Wrap with ranch dressing and fillings"},
sausageeggs = { name = "sausageeggs", label = "Sausage and Eggs", weight = 100, type = "item", image = "sausageeggs.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sausage served with eggs"},
steakburger = { name = "steakburger", label = "Steak Burger", weight = 100, type = "item", image = "steakburger.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Juicy burger with steak patty"},
toastbacon = { name = "toastbacon", label = "Bacon and Toast", weight = 100, type = "item", image = "toastbacon.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Crispy bacon with toast"},
tunasandwich = { name = "tunasandwich", label = "Tuna Sandwich", weight = 100, type = "item", image = "tunasandwich.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Tuna mixed sandwich"},
veggiewrap = { name = "veggiewrap", label = "Veggie Wrap", weight = 100, type = "item", image = "veggiewrap.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Wrap filled with vegetables"},
carrotcake = { name = "carrotcake", label = "Carrot Cake", weight = 100, type = "item", image = "carrotcake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Spiced cake with carrots"},
cheesecake = { name = "cheesecake", label = "Cheese Cake", weight = 100, type = "item", image = "cheesecake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Creamy cheesecake slice"},
chocpudding = { name = "chocpudding", label = "Chocolate Pudding", weight = 100, type = "item", image = "chocpudding.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Smooth chocolate dessert"},
jelly = { name = "jelly", label = "Jelly", weight = 100, type = "item", image = "jelly.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Fruit-flavored jelly"},
popdonut = { name = "popdonut", label = "Donut", weight = 100, type = "item", image = "popdonut.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Glazed donut"},
popicecream = { name = "popicecream", label = "Ice Cream", weight = 100, type = "item", image = "popicecream.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cold and creamy dessert"},
crisps = { name = "crisps", label = "Crisps", weight = 100, type = "item", image = "chips.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Crunchy potato crisps"},
chickenbreast = { name = "chickenbreast", label = "Chicken Breast", weight = 100, type = "item", image = "chickenbreast.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cooked chicken breast"},
jimsausages = { name = "jimsausages", label = "Sausages", weight = 100, type = "item", image = "jimsausages.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Pack of sausages"},
jimeggs = { name = "jimeggs", label = "Eggs", weight = 100, type = "item", image = "jimeggs.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Carton of fresh eggs"},
ham = { name = "ham", label = "Ham", weight = 100, type = "item", image = "ham.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sliced ham"},
fish = { name = "fish", label = "CatFish", weight = 200, type = "item", image = "fish.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Freshly caught catfish"},
meat = { name = "meat", label = "Meat", weight = 200, type = "item", image = "meat.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Raw meat cut"},
chocolate = { name = "chocolate", label = "Chocolate", weight = 200, type = "item", image = "chocolate.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Chocolate bar"},
lettuce = { name = "lettuce", label = "Lettuce", weight = 100, type = "item", image = "lettuce.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Fresh leafy lettuce"},
cheddar = { name = "cheddar", label = "Cheddar Slice", weight = 500, type = "item", image = "cheddar.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Sliced cheddar cheese"},
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 lemon-lime soda"},
ecola = { name = "ecola", label = "eCola", weight = 100, type = "item", image = "ecola.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Classic cola drink"},
ecolalight = { name = "ecolalight", label = "eCola Light", weight = 100, type = "item", image = "ecolalight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Low-calorie eCola"},
This applies to any framework using ox_inventory
Currently while using ESX
my scripts only support ox_inventory
Copy and paste the images from _install > images
to your inventory folder
eg. ox_inventory > web > images
Add the ox_items.txt
to your ox_inventory > data > items.lua
--JIM-POPSDINER
bltsandwich = {
label = "BLT Sandwich",
weight = 100,
stack = true,
close = true,
description = "Bacon, lettuce, and tomato sandwich",
client = {
image = "bltsandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
cheesesandwich = {
label = "Cheese Sandwich",
weight = 100,
stack = true,
close = true,
description = "Simple cheese-filled sandwich",
client = {
image = "cheesesandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
eggsandwich = {
label = "Eggs Sandwich",
weight = 100,
stack = true,
close = true,
description = "Eggs on toasted bread",
client = {
image = "eggsandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
hamcheesesandwich = {
label = "Ham and Cheese Sandwich",
weight = 100,
stack = true,
close = true,
description = "Ham and cheese in a sandwich",
client = {
image = "hamcheesesandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
hamsandwich = {
label = "Ham Sandwich",
weight = 100,
stack = true,
close = true,
description = "Sliced ham sandwich",
client = {
image = "hamsandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
tunasandwich = {
label = "Tuna Sandwich",
weight = 100,
stack = true,
close = true,
description = "Tuna mixed sandwich",
client = {
image = "tunasandwich.png",
event = "jim-popsdiner:client:Consume",
}
},
grilledwrap = {
label = "Grilled Wrap",
weight = 100,
stack = true,
close = true,
description = "Grilled meat and veggies in a wrap",
client = {
image = "grilledwrap.png",
event = "jim-popsdiner:client:Consume",
}
},
ranchwrap = {
label = "Ranch Wrap",
weight = 100,
stack = true,
close = true,
description = "Wrap with ranch dressing and fillings",
client = {
image = "ranchwrap.png",
event = "jim-popsdiner:client:Consume",
}
},
veggiewrap = {
label = "Veggie Wrap",
weight = 100,
stack = true,
close = true,
description = "Wrap filled with vegetables",
client = {
image = "veggiewrap.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Burgers
cheeseburger = {
label = "Cheese Burger",
weight = 100,
stack = true,
close = true,
description = "Burger with melted cheese",
client = {
image = "cheeseburger.png",
event = "jim-popsdiner:client:Consume",
}
},
hamburger = {
label = "Hamburger",
weight = 100,
stack = true,
close = true,
description = "Classic hamburger",
client = {
image = "hamburger.png",
event = "jim-popsdiner:client:Consume",
}
},
steakburger = {
label = "Steak Burger",
weight = 100,
stack = true,
close = true,
description = "Juicy burger with steak patty",
client = {
image = "steakburger.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Breakfast
baconeggs = {
label = "Bacon and Eggs",
weight = 100,
stack = true,
close = true,
description = "Classic breakfast combo",
client = {
image = "baconeggs.png",
event = "jim-popsdiner:client:Consume",
}
},
toastbacon = {
label = "Bacon and Toast",
weight = 100,
stack = true,
close = true,
description = "Crispy bacon with toast",
client = {
image = "toastbacon.png",
event = "jim-popsdiner:client:Consume",
}
},
sausageeggs = {
label = "Sausage and Eggs",
weight = 100,
stack = true,
close = true,
description = "Sausage served with eggs",
client = {
image = "sausageeggs.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Desserts
carrotcake = {
label = "Carrot Cake",
weight = 100,
stack = true,
close = true,
description = "Spiced cake with carrots",
client = {
image = "carrotcake.png",
event = "jim-popsdiner:client:Consume",
}
},
cheesecake = {
label = "Cheese Cake",
weight = 100,
stack = true,
close = true,
description = "Creamy cheesecake slice",
client = {
image = "cheesecake.png",
event = "jim-popsdiner:client:Consume",
}
},
chocpudding = {
label = "Chocolate Pudding",
weight = 100,
stack = true,
close = true,
description = "Smooth chocolate dessert",
client = {
image = "chocpudding.png",
event = "jim-popsdiner:client:Consume",
}
},
jelly = {
label = "Jelly",
weight = 100,
stack = true,
close = true,
description = "Fruit-flavored jelly",
client = {
image = "jelly.png",
event = "jim-popsdiner:client:Consume",
}
},
popdonut = {
label = "Donut",
weight = 100,
stack = true,
close = true,
description = "Glazed donut",
client = {
image = "popdonut.png",
event = "jim-popsdiner:client:Consume",
}
},
popicecream = {
label = "Ice Cream",
weight = 100,
stack = true,
close = true,
description = "Cold and creamy dessert",
client = {
image = "popicecream.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Snacks
crisps = {
label = "Crisps",
weight = 100,
stack = true,
close = true,
description = "Crunchy potato crisps",
client = {
image = "chips.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Ingredients
chickenbreast = {
label = "Chicken Breast",
weight = 100,
stack = true,
close = true,
description = "Cooked chicken breast",
client = {
image = "chickenbreast.png",
event = "jim-popsdiner:client:Consume",
}
},
jimsausages = {
label = "Sausages",
weight = 100,
stack = true,
close = true,
description = "Pack of sausages",
client = {
image = "jimsausages.png",
event = "jim-popsdiner:client:Consume",
}
},
jimeggs = {
label = "Eggs",
weight = 100,
stack = true,
close = true,
description = "Carton of fresh eggs",
client = {
image = "jimeggs.png",
event = "jim-popsdiner:client:Consume",
}
},
ham = {
label = "Ham",
weight = 100,
stack = true,
close = true,
description = "Sliced ham",
client = {
image = "ham.png",
event = "jim-popsdiner:client:Consume",
}
},
fish = {
label = "CatFish",
weight = 200,
stack = true,
close = false,
description = "Freshly caught catfish",
client = {
image = "fish.png",
event = "jim-popsdiner:client:Consume",
}
},
meat = {
label = "Meat",
weight = 200,
stack = true,
close = true,
description = "Raw meat cut",
client = {
image = "meat.png",
event = "jim-popsdiner:client:Consume",
}
},
chocolate = {
label = "Chocolate",
weight = 200,
stack = true,
close = false,
description = "Chocolate bar",
client = {
image = "chocolate.png",
event = "jim-popsdiner:client:Consume",
}
},
lettuce = {
label = "Lettuce",
weight = 100,
stack = true,
close = false,
description = "Fresh leafy lettuce",
client = {
image = "lettuce.png",
event = "jim-popsdiner:client:Consume",
}
},
cheddar = {
label = "Cheddar Slice",
weight = 500,
stack = true,
close = false,
description = "Sliced cheddar cheese",
client = {
image = "cheddar.png",
event = "jim-popsdiner:client:Consume",
}
},
-- Drinks
sprunk = {
label = "Sprunk",
weight = 100,
stack = true,
close = true,
description = "Lemon-lime soda",
client = {
image = "sprunk.png",
event = "jim-popsdiner:client:Consume",
}
},
sprunklight = {
label = "Sprunk Light",
weight = 100,
stack = true,
close = true,
description = "Low-calorie lemon-lime soda",
client = {
image = "sprunklight.png",
event = "jim-popsdiner:client:Consume",
}
},
ecola = {
label = "eCola",
weight = 100,
stack = true,
close = true,
description = "Classic cola drink",
client = {
image = "ecola.png",
event = "jim-popsdiner:client:Consume",
}
},
ecolalight = {
label = "eCola Light",
weight = 100,
stack = true,
close = true,
description = "Low-calorie eCola",
client = {
image = "ecolalight.png",
event = "jim-popsdiner:client:Consume",
}
},