💻Installation
Last updated
Last updated
You will need the latest version of qb-core
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
You will need the latest version of xsound
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
Add the items below to the qb-core/shared/items.lua:
-- cash exchange
rfid_cloner = { name = 'rfid_cloner', label = 'RFID Cloner', weight = 100, type = 'item', image = 'rfid_cloner.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'RFID Cloner' },
moneyprinter = { name = 'moneyprinter', label = 'Money Printer', weight = 100, type = 'item', image = 'moneyprinter.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Money Printer' },
ink = { name = 'ink', label = 'Special ink', weight = 100, type = 'item', image = 'ink.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Special ink' },
paper = { name = 'paper', label = 'Paper', weight = 100, type = 'item', image = 'paper.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Paper' },
Add this into your qb-inventory js file:
case "rfid_cloner":
if (itemData.info.uses == undefined) {
return `<p>Uses: 5</p>`;
}else{
return `<p>Uses: ${itemData.info.uses}</p>`;
}
Add the items below into your qs-inventory/shared/items.lua
['rfid_cloner'] = {
['name'] = 'rfid_cloner',
['label'] = 'RFID cloner',
['weight'] = 0,
['type'] = 'item',
['image'] = 'rfid_cloner.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'RFID cloner...'
},
['moneyprinter'] = {
['name'] = 'moneyprinter',
['label'] = 'Money Printer',
['weight'] = 0,
['type'] = 'item',
['image'] = 'moneyprinter.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Money Printer...'
},
['ink'] = {
['name'] = 'ink',
['label'] = 'Special Ink',
['weight'] = 0,
['type'] = 'item',
['image'] = 'ink.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Special Ink...'
},
['paper'] = {
['name'] = 'paper',
['label'] = 'Paper',
['weight'] = 0,
['type'] = 'item',
['image'] = 'paper.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Paper...'
},
['rollcash'] = {
['name'] = 'rollcash',
['label'] = 'Rollcash',
['weight'] = 0,
['type'] = 'item',
['image'] = 'rollcash.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Rollcash...'
},
Add this into qs-inventory/server/custom/misc/CreateUseableItem.lua
CreateUsableItem('moneyprinter', function(source, item)
local src = source
TriggerClientEvent("zat-cashexchange:client:UseItem", src, 'moneyprinter', 'prop_cash_printer_c')
end)
Add this into qs-inventory/config/metadata.js
} else if (itemData.name == "rfid_cloner") {
$(".item-info-title").html("<p>" + `${itemData.info.label || label}` + "</p>");
$(".item-info-description").html("<p>Uses: " + itemData.info.uses + "</p>");
Add the items below into your ox-inventory/data/items.lua
["rfid_cloner"] = {
label = "RFID Cloner",
weight = 100,
stack = false,
close = true,
description = "RFID Cloner",
client = {
image = "rfid_cloner.png",
}
},
["moneyprinter"] = {
label = "Money Printer",
weight = 100,
stack = false,
close = true,
description = "Money Printer",
client = {
image = "moneyprinter.png",
}
},
["paper"] = {
label = "Paper",
weight = 100,
stack = true,
close = true,
description = "Paper",
client = {
image = "paper.png",
}
},
["ink"] = {
label = "Special ink",
weight = 100,
stack = true,
close = true,
description = "Special ink",
client = {
image = "ink.png",
}
},
Add this into ox_inventory/modules/items/client.lua
Item('moneyprinter', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent("zat-cashexchange:client:UseItem", 'moneyprinter', 'prop_cash_printer_c')
end
end)
end)
-- exchange
{
ped = 'a_m_m_socenlat_01',
anim = 'CODE_HUMAN_MEDIC_TIME_OF_DEATH',
coords = vector4(1213.85, -1238.6, 35.33, 92.7),
job = "all", -- { ["police"] = 0, ["ambulance"] = 0} if you are using target
gang = "all", -- { ["ballas"] = 2, ["thelostmc"] = 0} if you are using target
groups = "all", -- { ["police"] = 2, ["ambulance"] = 0} if you are using intearaction
firstname = 'BARK',
lastname = 'MOORE',
rep = 0,
mission = 'cashexchange',
text = 'Hey there, looking for a side gig, huh? I’ve got an idea that’s a bit unconventional, but trust me, it’ll pay off. Picture this: you and your crew sneak into a cashexchange office, and grap all the money in there!.',
buttons = {
{
text= 'I want to work',
rep = 0,
answer ='Ready for a day of hard work?',
buttons={{
text = 'yes',
shop =false,
rep = 0,
action= {
isServer= false,
event= 'zat-cashexchange:client:StartWorking',
data= {}
},
canInteract = CanToggleSignIn(),
},
{
text = 'Leave Conversation',
shop =false,
rep = 0,
action= {
isServer= false,
event= 'zat-dialog:client:HideUi',
data= {}
},
canInteract = true
}
},
canInteract = true
},
{
text = 'Join/Create Group',
rep = 0,
shop =false,
action= {
isServer= false,
event= 'zat-groups:client:OpenUi',
data= {}
},
canInteract = true
},
{
text = 'Open Shop',
rep = 0,
shop = true,
answer = null,
canInteract = true
},
},
items={
{
name = 'rfid_cloner',
label = 'RFID Cloner',
image = 'nui://'..Config.Img..'rfid_cloner.png',
type = 'Equipement',
price = 1000,
rep = 0,
amount = 0, -- keep it 0
info = {},
canInteract = true
},
}
},