πŸ”΅
ZaT Scripts
  • Welcome
  • General information
  • 🟦QBCore
    • πŸ”΅Amazon
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Uber Eats
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Foodie
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Tap To Order
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅NoteBook
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Elevator
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Car Rental
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Crafting
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ“„Blueprints
      • πŸ“„Reputations
      • βš™οΈOthers
    • πŸ”΅Wash Money
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ’°More
    • πŸ”΅Store Robbery
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Pacific Robbery
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Weed
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈGenetics
    • πŸ”΅SnrBuns
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈOthers
    • πŸ”΅Mining PC
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈOthers
      • πŸ›’Shops
    • πŸ”΅Garbage Job
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ⁉️Common Questions
    • πŸ”΅NPC Dialog
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ’‘Reputations
    • πŸ”΅Roof Running
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅Laundromat
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅SNR Restaurants
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ⁉️How To add a new restaurant
    • πŸ”΅Farming & moonshine
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ§‘β€πŸ”¬Genetics
    • πŸ”΅Art Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅Maze Bank Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Clothing Store Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅ATM Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Cash Exchange Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅MDT
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ⚠️Dispatch
      • πŸ•–Events
    • πŸ”΅Gang
      • πŸ’»Installation
      • Exports
      • βš™οΈConfiguration
      • 🚩Gang Creation
      • πŸ“‹Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • πŸ”΅GPS Tracker
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Pause Menu
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Perks
      • πŸ’»Installation
      • βš™οΈConfiguration
      • Exports
      • ⁉️How To ?
    • πŸ”΅Fleeca
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Whiteboard
      • πŸ’»Installation
      • βš™οΈConfiguration
  • 🟦ESX
    • πŸ”΅Amazon
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Uber Eats
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Foodie
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅Tap To Order
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ❔Common questions
    • πŸ”΅NoteBook
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Crafting
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ“„Blueprints
      • πŸ“„Reputations
      • βš™οΈOthers
    • πŸ”΅Elevator
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Car Rental
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Wash Money
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Store Robbery
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Pacific Robbery
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Weed
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈGenetics
    • πŸ”΅SnrBuns
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈOthers
    • πŸ”΅Mining PC
      • πŸ’»Installation
      • βš™οΈConfiguration
      • βš™οΈOthers
      • πŸ›’Shops
    • πŸ”΅Garbage Job
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ⁉️Common Questions
    • πŸ”΅NPC Dialog
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ’‘Reputations
    • πŸ”΅Roof Running
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅Laundromat
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅SNR Restaurants
      • πŸ’»Installation
      • βš™οΈConfiguration
      • ⁉️How To add a new restaurant
    • πŸ”΅Farming & moonshine
      • πŸ’»Installation
      • βš™οΈConfiguration
      • πŸ§‘β€πŸ”¬Genetics
    • πŸ”΅Art Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅Maze Bank Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Clothing Store Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅ATM Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Cash Exchange Heist
      • πŸ’»Installation
      • βš™οΈConfiguration
      • 🚩Gang App
    • πŸ”΅Gang
      • πŸ’»Installation
      • Exports
      • βš™οΈConfiguration
      • 🚩Gang Creation
      • πŸ“‹Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • πŸ”΅GPS Tracker
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Pause Menu
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Perks
      • πŸ’»Installation
      • βš™οΈConfiguration
      • Exports
      • ⁉️How To ?
    • πŸ”΅Fleeca
      • πŸ’»Installation
      • βš™οΈConfiguration
    • πŸ”΅Whiteboard
      • πŸ’»Installation
      • βš™οΈConfiguration
  • 🟦STANDALONE
    • πŸ”΅Code Minigame
      • πŸ’»Installation
      • βš™οΈUsage
    • πŸ”΅Menu and Task UI
      • πŸ’»Installation
      • βš™οΈUsage
      • ⁉️Common Questions
Powered by GitBook
On this page
  • Dependencies :
  • Inventories :
  • ENSURE RESOURCES
  1. QBCore
  2. Cash Exchange Heist

Installation

PreviousCash Exchange HeistNextConfiguration

Last updated 18 days ago

Dependencies :

QBCore

You will need the latest version of

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.

INTERACT OR TARGET

You will need the latest version of or

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.

XSOUND

You will need the latest version of

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.


Inventories :

QB INVENTORY

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>`;  
            }
QS INVENTORY

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>");
OX INVENTORY

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)

ZAT DIALOG

-- exchange
    {
        img         = 'https://i.ibb.co/w4LKs4w/Five-M-b2944-GTAProcess-O90d-Wh83-Wq.png',
        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
            },     
        }
    }, 

ENSURE RESOURCES

qb-core
Interact
qb-target
xsound
🟦
πŸ”΅
πŸ’»
Page cover image