QBUS Billiard Job Script + MLO + 8 Poll Script (Rcore Pool WithOut IP Locked) (1 Viewer)

layze

Well-known member
Credits
51
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
very cool
 

shacito

Well-known member
Credits
75
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
nice
 

reecew22

Well-known member
Credits
14
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
 

SuperDoodle653

Well-known member
Credits
1
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
Nice work
 

renso

Member
Credits
9
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
nice
 

caste

Well-known member
Credits
1
Download Script Job + MLO + 8 Poll Script (Rcore Pool)

How To Install:

Add This Lines To qb-core > shared > items

["belgianwaffles"] = {["name"] = "belgianwaffles", ["label"] = "Belgian Waffles", ["weight"] = 1000, ["type"] = "item", ["image"] = "belgianwaffles.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Belgian Waffles"},
["pepsisirup"] = {["name"] = "pepsisirup", ["label"] = "Pepsi Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsisirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi Sirup"},
["colasirup"] = {["name"] = "colasirup", ["label"] = "Cola Sirup", ["weight"] = 1000, ["type"] = "item", ["image"] = "colasirup.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola Sirup"},
["pepsi"] = {["name"] = "pepsi", ["label"] = "Pepsi", ["weight"] = 1000, ["type"] = "item", ["image"] = "pepsi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Pepsi"},
["cola"] = {["name"] = "cola", ["label"] = "Cola", ["weight"] = 1000, ["type"] = "item", ["image"] = "cola.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cola"},
['ice'] = {['name'] = 'ice', ['label'] = 'Ice', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ice.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Ice'},
["redwine"] = {["name"] = "redwine", ["label"] = "Red Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "redwine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Red Wine"},
["whitewine"] = {["name"] = "whitewine", ["label"] = "White Wine", ["weight"] = 1000, ["type"] = "item", ["image"] = "whitewine.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Whte Wine"},
["dirtyplate"] = {["name"] = "dirtyplate", ["label"] = "Dirty Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "dirtyplate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Dirty Plate"},
["plate"] = {["name"] = "plate", ["label"] = "Clean Plate", ["weight"] = 1000, ["type"] = "item", ["image"] = "plate.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Clean Plate"},
["cheesecake"] = {["name"] = "cheesecake", ["label"] = "Cheese Cake", ["weight"] = 1000, ["type"] = "item", ["image"] = "cheesecake.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cheese Cake"},
["sponge"] = {["name"] = "sponge", ["label"] = "Sponge", ["weight"] = 1000, ["type"] = "item", ["image"] = "sponge.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Sponge"},

Step 2 Add This Lines To qb-smallresources > config > ConsumeablesEat

["belgianwaffles"] = math.random(40, 50),
["cheesecake"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesDrink

["cola"] = math.random(40, 50),
["pepsi"] = math.random(40, 50),

Step 3 Add This Lines To qb-smallresources > config > ConsumeablesAlcohol

["redwine"] = math.random(20, 40),
["whitewine"] = math.random(20, 40),

Step 4 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / Eat


QBCore.Functions.CreateUseableItem("belgianwaffles", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("cheesecake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Eat", src, item.name)
end
end)

Step 5 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / alcohol

QBCore.Functions.CreateUseableItem("whitewine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("redwine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

QBCore.Functions.CreateUseableItem("wine", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
TriggerClientEvent("consumables:client:DrinkAlcohol", src, item.name)
end)

Step 6 Add This Lines To qb-smallresources > server > consumables.lua > ----------- / drink

QBCore.Functions.CreateUseableItem("cola", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

QBCore.Functions.CreateUseableItem("pepsi", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:Drink", src, item.name)
end
end)

Step 6 Add The Job Into qb-core > shared > jobs (You Can Change The Payment And The Labels Of The Grades)

['billiard'] = {
label = 'Billiard',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Worker',
payment = 200
},
['1'] = {
name = 'Shift Manager',
payment = 300
},
['2'] = {
name = 'VCEO',
payment = 400
},
['3'] = {
name = 'CEO',
payment = 500
},
},
},

Step 7 Not Required Add A Inventory Images

Dependency​

qb-target

qb-smallresources

qb-bossmenu

PolyZone
 

CronixHigh

New member
Credits
1
[script:qb-smallresou] Error parsing script @qb-smallresources/server/consumables.lua in resource qb-smallresources: @qb-smallresources/server/consumables.lua:66: unexpected symbol near ')'
[ script:qb-core] Error parsing script @qb-core/shared/jobs.lua in resource qb-core: @qb-core/shared/jobs.lua:285: unexpected symbol near '['

im getting these 2 errors any help please ive triple checked them even
 

Users who are viewing this thread

Top