Installation Instructions

Installation Instructions

  1. Download the script from keymaster
  2. Extract [projectx_atmrobbery] to your resources folder
  3. Adjust load order in server.cfg
ensure ox_lib -- (if thats the first time you download ox_lib this should be added right above your framework's ensure)
ensure [projectx-atmrobbery]
  1. Run the SQL File below or in the zip

Run this SQL file if you are installing or changing from flight_atmrobbery

DROP TABLE IF EXISTS `projectx_atmrobbery`;
DROP TABLE IF EXISTS `flight_atmrobbery`;
CREATE TABLE IF NOT EXISTS `projectx_atmrobbery` (
  `id` varchar(50) NOT NULL,
  `x` varchar(50) DEFAULT NULL,
  `y` varchar(50) DEFAULT NULL,
  `z` varchar(50) DEFAULT NULL,
  `heading` varchar(50) NOT NULL DEFAULT '0',
  `type` varchar(50) DEFAULT NULL,
  `step` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
 
  1. Add Items to Inventory and images from images folder

qb-inventory

 ['nylonrope']        = {['name'] = 'nylonrope',      ['label'] = 'Nylon Rope',     ['weight'] = 500,   ['type'] = 'item',   ['image'] = 'nylonrope.png',    ['unique'] = false,  ['useable'] = true,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'The strongest rope material..'},
 ['atmred']         = {['name'] = 'atmred',       ['label'] = 'Red Atm',      ['weight'] = 25000,  ['type'] = 'item',   ['image'] = 'atmred.png',     ['unique'] = true,   ['useable'] = true,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'A console of an ATM'},
 ['atmblue']          = {['name'] = 'atmblue',       ['label'] = 'Blue Atm',     ['weight'] = 25000,  ['type'] = 'item',   ['image'] = 'atmblue.png',     ['unique'] = true,   ['useable'] = true,  ['shouldClose'] = true,    ["combinable"] = nil,   ['description'] = 'A console of an ATM'},
 ['atmgreen']        = {['name'] = 'atmgreen',       ['label'] = 'Green Atm',     ['weight'] = 25000,  ['type'] = 'item',   ['image'] = 'atmgreen.png',    ['unique'] = true,   ['useable'] = true,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'A console of an ATM'},
 ['atmpanel']        = {['name'] = 'atmpanel',       ['label'] = 'Atm Panel',     ['weight'] = 5000,   ['type'] = 'item',   ['image'] = 'atmpanel.png',    ['unique'] = true,   ['useable'] = false,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'A back panel for an ATM'},
 ['atmcables']        = {['name'] = 'atmcables',      ['label'] = 'Atm Cables',     ['weight'] = 2000,   ['type'] = 'item',   ['image'] = 'atmcables.png',    ['unique'] = true,   ['useable'] = false,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'Cables..'},
 ['atmmotherboard']       = {['name'] = 'atmmotherboard',     ['label'] = 'Atm Motherboard',    ['weight'] = 2000,   ['type'] = 'item',   ['image'] = 'atmmotherboard.png',   ['unique'] = true,   ['useable'] = false,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'A motherboard for an ATM'},
 ['blowtorch']        = {['name'] = 'blowtorch',      ['label'] = 'Blow Torch',     ['weight'] = 1000,   ['type'] = 'item',   ['image'] = 'blowtorch.png',    ['unique'] = true,   ['useable'] = false,  ['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'Ooo hot..'},
 ["laserdrill"]        = {["name"] = "laserdrill",          ["label"] = "Laser Drill",     ["weight"] = 1000,   ["type"] = "item",   ["image"] = "laserdrill.png",    ["unique"] = true,   ["useable"] = true,  ["shouldClose"] = true,   ["combinable"] = nil,   ["description"] = "" },
 

ox_inventory

    ['nylonrope'] = {
        label = 'Nylon Rope',
        description = 'The strongest rope material..',
        weight = 125,
        close = true,
        stack = true,
        client = {
   image = "nylonrope.png",
  }
    },
    ['atmred'] = {
        label = 'Red ATM',
        description = 'A console of an automated teller.',
        weight = 350,
        close = true,
        stack = false,
        client = {
   image = "atmred.png",
  }
    },
    ['atmblue'] = {
        label = 'Blue ATM',
        description = 'A console of an automated teller.',
        weight = 350,
        close = true,
        stack = false,
        client = {
   image = "atmblue.png",
  }
    },
    ['atmgreen'] = {
        label = 'Green ATM',
        description = 'A console of an automated teller.',
        weight = 350,
        close = true,
        stack = false,
        client = {
   image = "atmgreen.png",
  }
    },
    ['atmpanel'] = {
        label = 'ATM Panel',
        description = 'A back panel from an automated teller.',
        weight = 125,
        close = true,
        stack = false,
        client = {
   image = "atmpanel.png",
  }
    },
    ['atmcables'] = {
        label = 'ATM Cables',
        description = 'Cables from an automated teller.',
        weight = 125,
        close = true,
        stack = false,
        client = {
   image = "atmcables.png",
  }
    },
    ['atmmotherboard'] = {
        label = 'ATM Motherboard',
        description = 'A motherboard from an automated teller.',
        weight = 125,
        close = true,
        stack = false,
        client = {
   image = "atmmotherboard.png",
  }
    },
    ['blowtorch'] = {
        label = 'Blow Torch',
        description = 'Ooo hot...',
        weight = 125,
        close = true,
        stack = false,
        client = {
   image = "blowtorch.png",
  }
    },
    ['laserdrill'] = {
        label = 'Laser Drill',
        description = 'I wonder what this does...',
        weight = 125,
        close = true,
        stack = false,
        client = {
   image = "laserdrill.png",
  }
    },
    ['screwdriverset'] = {
        label = 'Screwdriverset',
        description = 'A Screw driver set',
        weight = 50,
        close = true,
        stack = false,
        client = {
   image = "screwdriverset.png",
  }
    },
  1. [OPTIONAL STEP] Add Items to Renewed-Weaponscarry (opens in a new tab) /data/carry.lua
    atmred = {
        model = 'projectx_atm_03',
        bone = 28422,
        pos = vec3(0.01, -0.22, -0.8),
        rot = vec3(0.0, 0.0, 0.0),
        dict = 'anim@heists@box_carry@',
        anim = 'idle',
        disableKeys = {
            disableSprint = true,
            disableJump = true,
            disableAttack = true,
            disableVehicle = true
        }
    },
    atmblue = {
        model = 'projectx_atm_02',
        bone = 28422,
        pos = vec3(0.01, -0.22, -0.8),
        rot = vec3(0.0, 0.0, 0.0),
        dict = 'anim@heists@box_carry@',
        anim = 'idle',
        disableKeys = {
            disableSprint = true,
            disableJump = true,
            disableAttack = true,
            disableVehicle = true
        }
    },
    atmgreen = {
        model = 'projectx_fleeca_atm',
        bone = 28422,
        pos = vec3(0.01, -0.22, -0.8),
        rot = vec3(0.0, 0.0, 0.0),
        dict = 'anim@heists@box_carry@',
        anim = 'idle',
        disableKeys = {
            disableSprint = true,
            disableJump = true,
            disableAttack = true,
            disableVehicle = true
        }
    },