JixelPatterns
  • JixelPatterns Documentation
  • Troubleshooting
    • Common Issues
    • Setting Up Locations
    • FAQ
  • Dependency
    • Jim_Bridge
      • Animal Ped Support
      • Script Helpers
      • Loader Functions
      • Callbacks
      • Cameras
      • Context Menus
      • Crafting
      • DrawText
      • Dui Functions
      • Input Creator
      • Inventories
      • Job Functions
      • Make Functions
      • Meta Handlers
      • Notifications
      • Phones
      • Player Functions
      • Poly Zones
      • Progress Bars
      • Scale Entity
      • Shops
      • Skillcheck
      • Society Banking
      • Stash Control
      • Targets
      • Vehicles
      • Wrapper Functions
      • Scaleforms
  • Paid Assets
    • Jim-Mechanic
      • Common Issues
      • Installation
      • Locations
        • Creating a Location
      • Nitrous
      • Harness + Seatbelt
      • Emergency Repair Bench
      • Odometer
      • Speedometer
      • Performance Mods
      • Preview System
      • Repair System
      • Car Lifts
      • Plate Change
      • Push Vehicle
      • Stancer Kit
      • Vehicle Seat Picker
    • Jim-Bakery
      • Installation
    • Jim-BeanMachine
      • Installation
    • Jim-BurgerShot
      • Installation
    • Jim-CatCafe
      • Installation
    • Jim-Henhouse
      • Installation
    • Jim-PizzaThis
      • Installation
    • Jim-Popsdiner
      • Installation
  • Free Assets
    • Jim-Mining
      • Installation
      • How To Use
        • Mining
        • Stone Washing
        • Gold Panning
    • Jim-Recycle
      • Installation
      • How To Use
        • Recycling
        • Dumpster Diving
        • Scrapping
    • Jim-Payments
      • Installation
      • How To Use
    • Jim-Shops
      • Installation
      • How To Use
    • Jim-Boarding
      • Installation
      • How To Use
    • Jim-Trains
      • Installation
      • How To Use
    • Jim-Consumbles
      • Installation
      • How To Use
    • Jim-DJBooth
      • Installation
      • How To Use
    • Jim-JobGarage
      • Installation
      • How To Use
    • Jim-Chairs
      • Installation
    • Jim-Notepad
      • Installation
      • How To Use
Powered by GitBook
On this page
  • Dependency Installation
  • Jim_Bridge
  • Framework Installation
  • Job Installation
  • Item Installation
  1. Paid Assets
  2. Jim-BeanMachine

Installation

PreviousJim-BeanMachineNextJim-BurgerShot

Last updated 2 days ago

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

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

1

Download

Get it free from github -

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

The ORDER of the load order is important, check information

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.


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

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


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


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

Job Installation

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

INSERT INTO `jobs` (name, label) VALUES
	('beanmachine', 'BeanMachine')
;

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

Add the lines from qb_jobs.txt to your qb-core > shared > jobs.lua

['beanmachine'] = {
    label = 'BeanMachine',
    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

['beanmachine'] = {
    label = 'BeanMachine',
    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
( 'beanmachine', 'BeanMachine', NULL, 1 );

INSERT IGNORE INTO `ox_group_grades` (`group`, `grade`, `label`, `accountRole`) VALUES
('beanmachine', 0, 'Recruit', NULL),
('beanmachine', 1, 'Novice', 'novice'),
('beanmachine', 2, 'Experienced', 'experienced'),
('beanmachine', 3, 'Advanced', 'advanced'),
('beanmachine', 4, 'Manager', 'manager'),
('beanmachine', 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-BEANMACHINE --
    beancoffee    = { name = 'beancoffee', label = 'Coffee Beans', weight = 100, type = 'item', image = 'beancoffee.png', unique = false, useable = false, shouldClose = true, description = 'A bag of roasted coffee beans' },
    beandonut    = { name = 'beandonut', label = 'Donut', weight = 100, type = 'item', image = 'popdonut.png', unique = false, useable = true, shouldClose = true, description = 'Freshly baked donut' },
    rhinohorn    = { name = 'rhinohorn', label = 'Rhino Horn', weight = 100, type = 'item', image = 'rhinohorn.png', unique = false, useable = false, shouldClose = true, description = 'A rare rhino horn' },
    oystershell    = { name = 'oystershell', label = 'Oyster Shell', weight = 100, type = 'item', image = 'oyster.png', unique = false, useable = false, shouldClose = true, description = 'Shell from an oyster' },
    watermelon    = { name = 'watermelon', label = 'Watermelon Slice', weight = 100, type = 'item', image = 'watermelon.png', unique = false, useable = true, shouldClose = true, description = 'Juicy slice of watermelon' },
    bigfruit    = { name = 'bigfruit', label = 'The Big Fruit', weight = 100, type = 'item', image = 'bigfruit.png', unique = false, useable = true, shouldClose = true, description = 'A mysterious oversized fruit' },
    highnoon    = { name = 'highnoon', label = 'Highnoon', weight = 100, type = 'item', image = 'highnoon.png', unique = false, useable = true, shouldClose = true, description = 'Strong and bold highnoon coffee' },
    speedball    = { name = 'speedball', label = 'The SpeedBall', weight = 100, type = 'item', image = 'speedball.png', unique = false, useable = true, shouldClose = true, description = 'High-caffeine speedball drink' },
    gunkaccino    = { name = 'gunkaccino', label = 'The Gunkaccino', weight = 100, type = 'item', image = 'gunkaccino.png', unique = false, useable = true, shouldClose = true, description = 'Funky-flavored gunkaccino' },
    bratte    = { name = 'bratte', label = 'The Bratte', weight = 100, type = 'item', image = 'bratte.png', unique = false, useable = true, shouldClose = true, description = 'Creamy bratte coffee drink' },
    flusher    = { name = 'flusher', label = 'The Flusher', weight = 100, type = 'item', image = 'flusher.png', unique = false, useable = true, shouldClose = true, description = 'Energizing and cleansing brew' },
    ecocoffee    = { name = 'ecocoffee', label = 'The Eco-ffee', weight = 100, type = 'item', image = 'ecoffee.png', unique = false, useable = true, shouldClose = true, description = 'Eco-friendly brewed coffee' },
    caffeagra    = { name = 'caffeagra', label = 'Caffeagra', weight = 100, type = 'item', image = 'caffeagra.png', unique = false, useable = true, shouldClose = true, description = 'Bold and powerful coffee shot' },
    chocolate    = { name = 'chocolate', label = 'Chocolate', weight = 200, type = 'item', image = 'chocolate.png', unique = false, useable = true, shouldClose = false, description = 'Delicious chocolate bar' },
    cheesecake    = { name = 'cheesecake', label = 'Cheese Cake', weight = 100, type = 'item', image = 'cheesecake.png', unique = false, useable = true, shouldClose = true, description = 'Rich and creamy cheesecake' },
    crisps    = { name = 'crisps', label = 'Crisps', weight = 100, type = 'item', image = 'chips.png', unique = false, useable = true, shouldClose = true, description = 'Crunchy potato crisps' },
    sugar    = { name = 'sugar', label = 'Sugar', weight = 100, type = 'item', image = 'sugar.png', unique = false, useable = true, shouldClose = false, description = 'Granulated white sugar' },
    orange    = { name = 'orange', label = 'Orange', weight = 200, type = 'item', image = 'orange.png', unique = false, useable = false, shouldClose = false, description = 'A fresh, juicy orange' },
    milk    = { name = 'milk', label = 'Milk', weight = 300, type = 'item', image = 'burger-milk.png', unique = false, useable = true, shouldClose = true, description = 'Carton of milk' },
    chickenbreast    = { name = 'chickenbreast', label = 'Chicken Breast', weight = 100, type = 'item', image = 'chickenbreast.png', unique = false, useable = true, shouldClose = false, description = 'Raw chicken breast fillet' },
    sprunk    = { name = 'sprunk', label = 'Sprunk', weight = 100, type = 'item', image = 'sprunk.png', unique = false, useable = true, shouldClose = true, description = 'Can of Sprunk soda' },
    sprunklight    = { name = 'sprunklight', label = 'Sprunk Light', weight = 100, type = 'item', image = 'sprunklight.png', unique = false, useable = true, shouldClose = true, description = 'Diet version of Sprunk' },
    ecola    = { name = 'ecola', label = 'eCola', weight = 100, type = 'item', image = 'ecola.png', unique = false, useable = true, shouldClose = true, description = 'Can of eCola soda' },
    ecolalight    = { name = 'ecolalight', label = 'eCola Light', weight = 100, type = 'item', image = 'ecolalight.png', unique = false, useable = true, shouldClose = true, description = 'Diet eCola soda' },

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-BEANMACHINE --
    ['beancoffee']      = {
        label       = "Coffee Beans",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "A bag of roasted coffee beans",
        client      = {
            image = "beancoffee.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['highnoon']        = {
        label       = "Highnoon",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Strong and bold highnoon coffee",
        client      = {
            image = "highnoon.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['speedball']       = {
        label       = "The SpeedBall",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "High-caffeine speedball drink",
        client      = {
            image = "speedball.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['gunkaccino']      = {
        label       = "The Gunkaccino",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Funky-flavored gunkaccino",
        client      = {
            image = "gunkaccino.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['bratte']          = {
        label       = "The Bratte",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Creamy bratte coffee drink",
        client      = {
            image = "bratte.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['flusher']         = {
        label       = "The Flusher",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Energizing and cleansing brew",
        client      = {
            image = "flusher.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['ecocoffee']       = {
        label       = "The Eco-ffee",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Eco-friendly brewed coffee",
        client      = {
            image = "ecoffee.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['caffeagra']       = {
        label       = "Caffeagra",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Bold and powerful coffee shot",
        client      = {
            image = "caffeagra.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

    -- Desserts & Sweets
    ['cheesecake']      = {
        label       = "Cheese Cake",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Rich and creamy cheesecake",
        client      = {
            image = "cheesecake.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['chocolate']       = {
        label       = "Chocolate",
        weight      = 200,
        stack       = true,
        close       = false,
        description = "Delicious chocolate bar",
        client      = {
            image = "chocolate.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['sugar']           = {
        label       = "Sugar",
        weight      = 100,
        stack       = true,
        close       = false,
        description = "Granulated white sugar",
        client      = {
            image = "sugar.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['beandonut']       = {
        label       = "Donut",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Freshly baked donut",
        client      = {
            image = "popdonut.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['crisps']          = {
        label       = "Crisps",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Crunchy potato crisps",
        client      = {
            image = "chips.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

    -- Fruits & Produce
    ['orange']          = {
        label       = "Orange",
        weight      = 200,
        stack       = true,
        close       = false,
        description = "A fresh, juicy orange",
        client      = {
            image = "orange.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['watermelon']      = {
        label       = "Watermelon Slice",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Juicy slice of watermelon",
        client      = {
            image = "watermelon.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['bigfruit']        = {
        label       = "The Big Fruit",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "A mysterious oversized fruit",
        client      = {
            image = "bigfruit.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

    -- Meat
    ['chickenbreast']   = {
        label       = "Chicken Breast",
        weight      = 100,
        stack       = true,
        close       = false,
        description = "Raw chicken breast fillet",
        client      = {
            image = "chickenbreast.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

    -- Rare/Exotic
    ['rhinohorn']       = {
        label       = "Rhino Horn",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "A rare rhino horn",
        client      = {
            image = "rhinohorn.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['oystershell']     = {
        label       = "Oyster Shell",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Shell from an oyster",
        client      = {
            image = "oyster.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

    -- Drinks
    ['milk']            = {
        label       = "Milk",
        weight      = 300,
        stack       = true,
        close       = true,
        description = "Carton of milk",
        client      = {
            image = "burger-milk.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['sprunk']          = {
        label       = "Sprunk",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Can of Sprunk soda",
        client      = {
            image = "sprunk.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['sprunklight']     = {
        label       = "Sprunk Light",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Diet version of Sprunk",
        client      = {
            image = "sprunklight.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['ecola']           = {
        label       = "eCola",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Can of eCola soda",
        client      = {
            image = "ecola.png",
            event = "jim-beanmachine:client:Consume",
        }
    },
    ['ecolalight']      = {
        label       = "eCola Light",
        weight      = 100,
        stack       = true,
        close       = true,
        description = "Diet eCola soda",
        client      = {
            image = "ecolalight.png",
            event = "jim-beanmachine:client:Consume",
        }
    },

(Required/Optional)

(Optional)

(Required/Optional)

(Optional)

(Required/Optional)

(Optional)

(Required/Optional)

(Optional)

https://github.com/jimathy/jim_bridge
here
Jim-Payments
Jim-Consumables
Jim-Payments
Jim-Consumables
Jim-Payments
Jim-Consumables
Jim-Payments
Jim-Consumables