Installation

Dependency Installation

Jim_Bridge

This is required for the script to function, it won't work without it

1

Download

Get it free from github - https://github.com/jimathy/jim_bridge

2

Extract

Extract jim_bridge and make sure -main is removed from the script folder name

3

Install

Place the extracted jim_bridge folder into /resources/[standalone]

4

Done


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

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

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 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)

Job Installation

Import the esx_jobs.sql into your database to add the jobs and their grades

INSERT INTO `jobs` (name, label) VALUES
	('bakery', 'Bakery')
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
	('bakery',0,'recruit','Recruit',50,'{}','{}'),
	('bakery',1,'novice','Novice',75,'{}','{}'),
	('bakery',2,'experienced','Experienced',100,'{}','{}'),
	('bakery',3,'advanced',"Advanced",125,'{}','{}'),
	('bakery',4,'boss','Manager',150,'{}','{}'),
	('bakery',5,'owner','Owner',175,'{}','{}')
;

Item Installation

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-BAKERY --
    chocolatesyrup    = { name = "chocolatesyrup", label = "Chocolate Syrup", weight = 200, type = "item", image = "chocolatesyrup.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sweet and rich syrup." },
    jimeggs    = { name = "jimeggs", label = "Eggs", weight = 100, type = "item", image = "jimeggs.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Farm-fresh eggs." },
    chocolate    = { name = "chocolate", label = "Chocolate", weight = 200, type = "item", image = "chocolate.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A bar of sweet chocolate." },
    sugar    = { name = "sugar", label = "Sugar", weight = 100, type = "item", image = "sugar.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sweet granulated sugar." },
    flour    = { name = "flour", label = "Flour", weight = 100, type = "item", image = "flour.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Fine white flour." },
    dough    = { name = "dough", label = "Dough", weight = 200, type = "item", image = "pizzadough.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Prepared baking dough." },
    heavycream    = { name = "heavycream", label = "Heavy Cream", weight = 200, type = "item", image = "heavycream.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Thick dairy cream." },
    icecream    = { name = "icecream", label = "Ice Cream", weight = 500, type = "item", image = "burger-icecream.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cold and sweet dessert." },
    milk    = { name = "milk", label = "Milk", weight = 500, type = "item", image = "burger-milk.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Carton of milk." },
    lettuce    = { name = "lettuce", label = "Lettuce", weight = 100, type = "item", image = "lettuce.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Crisp green lettuce." },
    cheddar    = { name = "cheddar", label = "Cheddar Slice", weight = 100, type = "item", image = "cheddar.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Slice of cheddar cheese." },
    ham    = { name = "ham", label = "Ham", weight = 100, type = "item", image = "ham.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sliced ham." },
    strawberry    = { name = "strawberry", label = "Strawberry", weight = 100, type = "item", image = "strawberry.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Fresh strawberry." },
    vanillaextract    = { name = "vanillaextract", label = "Vanilla Extract", weight = 500, type = "item", image = "vanillaextract.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Strong vanilla essence." },
    cocoapowder    = { name = "cocoapowder", label = "Cocoa Powder", weight = 500, type = "item", image = "cocoapowder.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Finely ground cocoa." },
    icing    = { name = "icing", label = "Icing", weight = 500, type = "item", image = "icing.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sweet icing for cakes." },
    tbbread    = { name = "tbbread", label = "Loaf of Bread", weight = 500, type = "item", image = "tbbread.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Freshly baked bread." },
    tbwhitebread    = { name = "tbwhitebread", label = "White Bread Roll", weight = 500, type = "item", image = "tbwhitebread.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Soft white bread roll." },
    tbbrownbread    = { name = "tbbrownbread", label = "Brown Bread Roll", weight = 500, type = "item", image = "tbbrownbread.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Whole grain brown roll." },
    breadslice    = { name = "breadslice", label = "Slice of Bread", weight = 50, type = "item", image = "breadslice.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "A single slice of bread." },
    milkshake    = { name = "milkshake", label = "Milkshake", weight = 200, type = "item", image = "burger-milkshake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cold milkshake drink." },
    strawberrymilkshake    = { name = "strawberrymilkshake", label = "Strawberry Milkshake", weight = 200, type = "item", image = "strawberrymilkshake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Strawberry flavored milkshake." },
    chocolatemilkshake    = { name = "chocolatemilkshake", label = "Chocolate Milkshake", weight = 200, type = "item", image = "chocolatemilkshake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Chocolate flavored milkshake." },
    sprunk    = { name = "sprunk", label = "Sprunk", weight = 100, type = "item", image = "sprunk.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Classic 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 = "Diet lemon-lime soda." },
    ecola    = { name = "ecola", label = "eCola", weight = 100, type = "item", image = "ecola.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Cola-flavored soda." },
    ecolalight    = { name = "ecolalight", label = "eCola Light", weight = 100, type = "item", image = "ecolalight.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Diet cola-flavored soda." },
    tbbirthdaycake    = { name = "tbbirthdaycake", label = "Birthday Cake", weight = 200, type = "item", image = "tbbirthdaycake.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Colorful birthday cake." },
    tbcake    = { name = "tbcake", label = "Cake", weight = 200, type = "item", image = "tbcake.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Plain cake." },
    tbchoccake    = { name = "tbchoccake", label = "Chocolate Cake", weight = 200, type = "item", image = "tbchoccake.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Rich chocolate cake." },
    tbcookie    = { name = "tbcookie", label = "Cookie", weight = 50, type = "item", image = "tbcookie.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Crunchy cookie." },
    tbbrownie    = { name = "tbbrownie", label = "Brownie", weight = 200, type = "item", image = "tbbrownie.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Chocolate brownie." },
    tbcroissant    = { name = "tbcroissant", label = "Croissant", weight = 200, type = "item", image = "tbcroissant.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Flaky croissant." },
    tbchoccroiss    = { name = "tbchoccroiss", label = "Bloody Cross", weight = 200, type = "item", image = "tbblcroiss.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Chocolate-filled croissant." },
    tbcupcake    = { name = "tbcupcake", label = "CupCake", weight = 200, type = "item", image = "tbcupcake.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Sweet cupcake." },
    tbsweetroll    = { name = "tbsweetroll", label = "Sweet Roll", weight = 200, type = "item", image = "tbsweetroll.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Iced sweet roll." },
    tbdonut    = { name = "tbdonut", label = "Donut", weight = 500, type = "item", image = "tbdonut.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Frosted donut." },
    tblongjohn    = { name = "tblongjohn", label = "Long John", weight = 500, type = "item", image = "tblongjohn.png", unique = false, useable = true, shouldClose = true, combinable = nil, description = "Iced pastry bar." },
    tbcakebase    = { name = "tbcakebase", label = "Cake Base", weight = 500, type = "item", image = "tbcakebase.png", unique = true, useable = true, shouldClose = true, combinable = nil, description = "Plain cake layer base." }

Last updated