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
('pizzathis', 'Pizza This')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('pizzathis',0,'recruit','Recruit',12,'{}','{}'),
('pizzathis',1,'novice','Novice',24,'{}','{}'),
('pizzathis',2,'experienced','Experienced',36,'{}','{}'),
('pizzathis',3,'advanced',"Advanced",48,'{}','{}'),
('pizzathis',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-PIZZATHIS --
--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) },
--WINES
amarone = { name = "amarone", label = "Amarone", weight = 100, type = "item", image = "amarone.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
barbera = { name = "barbera", label = "Barbera D'Asti", weight = 100, type = "item", image = "barbera.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
dolceto = { name = "dolceto", label = "Dolcetto D'Alba", weight = 100, type = "item", image = "dolceto.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
housered = { name = "housered", label = "House Red Wine", weight = 100, type = "item", image = "housered.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
housewhite = { name = "housewhite", label = "House White Wine", weight = 100, type = "item", image = "housewhite.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
rosso = { name = "rosso", label = "Rosso Del Montalcino", weight = 100, type = "item", image = "rosso.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['thirst'] = math.random(20, 30) },
--DESSERTS
tiramisu = { name = "tiramisu", label = "Tiramisu", weight = 100, type = "item", image = "tiramisu.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
gelato = { name = "gelato", label = "Choc and Vanilla Gelato", weight = 100, type = "item", image = "gelato.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
medfruits = { name = "medfruits", label = "Fresh Fruit Medly", weight = 100, type = "item", image = "medfruits.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
--PASTA
bolognese = { name = "bolognese", label = "Bolognese", weight = 100, type = "item", image = "bolognese.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
calamari = { name = "calamari", label = "Calamari Marinara", weight = 100, type = "item", image = "calamari.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
meatball = { name = "meatball", label = "Homemade Meatballs", weight = 100, type = "item", image = "meatball.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
alla = { name = "alla", label = "Alla Vodka", weight = 100, type = "item", image = "alla.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
pescatore = { name = "pescatore", label = "Pescatore", weight = 100, type = "item", image = "pescatore.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
--PIZZA SLICES
capricciosa = { name = "capricciosa", label = "Capriccosa", weight = 100, type = "item", image = "capricciosa.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
diavola = { name = "diavola", label = "Diavola", weight = 100, type = "item", image = "diavola.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
marinara = { name = "marinara", label = "Marinara", weight = 100, type = "item", image = "marinara.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
margherita = { name = "margherita", label = "Margherita", weight = 100, type = "item", image = "margherita.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
prosciuttio = { name = "prosciuttio", label = "Prosciuttio E Funghi", weight = 100, type = "item", image = "proscuttio.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
vegetariana = { name = "vegetariana", label = "Vegetariana", weight = 100, type = "item", image = "vegetariana.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", ['hunger'] = math.random(20, 30) },
--PIZZA BOXES
capricciosabox = { name = "capricciosabox", label = "Boxed Capriccosa", weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
diavolabox = { name = "diavolabox", label = "Boxed Diavola", weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
marinarabox = { name = "marinarabox", label = "Boxed Marinara", weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
margheritabox = { name = "margheritabox", label = "Boxed Margherita", weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
prosciuttiobox = { name = "prosciuttiobox", label = "Boxed Prosciuttio E Funghi",weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
vegetarianabox = { name = "vegetarianabox", label = "Boxed Vegetariana", weight = 100, type = "item", image = "pizzabox.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "", },
--INGREDIENTS
pizzabase = { name = "pizzabase", label = "Pizza Base", weight = 100, type = "item", image = "base2.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
pizzadough = { name = "pizzadough", label = "Pizza Dough", weight = 100, type = "item", image = "pizzadough.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
mozz = { name = "mozz", label = "Mozzeralla", weight = 100, type = "item", image = "mozz.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
sauce = { name = "sauce", label = "Tomato Sauce", weight = 100, type = "item", image = "sauce.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
salami = { name = "salami", label = "Salami", weight = 100, type = "item", image = "salami.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
ham = { name = "ham", label = "Ham", weight = 100, type = "item", image = "ham.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
squid = { name = "squid", label = "Calamari", weight = 100, type = "item", image = "squid.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
pizzmushrooms = { name = "pizzmushrooms", label = "Mushrooms", weight = 100, type = "item", image = "mushrooms.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
olives = { name = "olives", label = "Olives", weight = 100, type = "item", image = "olives.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
basil = { name = "basil", label = "Basil", weight = 100, type = "item", image = "basil.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "", },
meat = { name = "meat", label = "Meat", weight = 200, type = "item", image = "meat.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "A slab of Meat", },
pasta = { name = "pasta", label = "Bag of Pasta", weight = 200, type = "item", image = "pasta.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "A bag of Pasta", },
lettuce = { name = "lettuce", label = "Lettuce", weight = 100, type = "item", image = "lettuce.png", unique = false, useable = false, shouldClose = false, combinable = nil, description = "Some big taco brother"},
Last updated