
π»Installation
Dependencies :
QBCore
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.
ITEMS
QB INVENTORY
Go to qb-core/shared/items.lua and add this :
-- house robbery
hrcar = { name = 'hrcar', label = 'Trevis RC Car', weight = 7000, type = 'item', image = 'hrcar.png', unique = false, useable = true, shouldClose = true, description = 'Trevis RC Car' },
hrcontroller = { name = 'hrcontroller', label = 'Trevis RC Controller', weight = 7000, type = 'item', image = 'hrcontroller.png', unique = false, useable = true, shouldClose = true, description = 'Trevis RC Controller' },
fakefingerprints = { name = 'fakefingerprints', label = 'Fake Fingerprints Gloves', weight = 7000, type = 'item', image = 'fakefingerprints.png', unique = false, useable = true, shouldClose = true, description = 'Fake Fingerprints Gloves' },
hrcamera = { name = 'hrcamera', label = 'Camera', weight = 7000, type = 'item', image = 'hrcamera.png', unique = false, useable = true, shouldClose = true, description = 'Camera' },
hrlaptop = { name = 'hrlaptop', label = 'Laptop', weight = 7000, type = 'item', image = 'hrlaptop.png', unique = false, useable = true, shouldClose = true, description = 'Laptop' },
hrgunner = { name = 'hrgunner', label = 'Gunner Trophy', weight = 7000, type = 'item', image = 'hrgunner.png', unique = false, useable = true, shouldClose = true, description = 'Gunner Trophy' },
hrpuma = { name = 'hrpuma', label = 'Puma Sculpt', weight = 7000, type = 'item', image = 'hrpuma.png', unique = false, useable = true, shouldClose = true, description = 'hrpuma Sculpt' },
hrconsole = { name = 'hrconsole', label = 'Gaming Console', weight = 7000, type = 'item', image = 'hrconsole.png', unique = false, useable = true, shouldClose = true, description = 'Gaming Console' },
hrgcontrol = { name = 'hrgcontrol', label = 'Gaming Controller', weight = 7000, type = 'item', image = 'hrgcontrol.png', unique = false, useable = true, shouldClose = true, description = 'Gaming Controller' },
hrplaque = { name = 'hrplaque', label = 'Reward Plaque', weight = 7000, type = 'item', image = 'hrplaque.png', unique = false, useable = true, shouldClose = true, description = 'Reward Plaque' },
hrheadphone = { name = 'hrheadphone', label = 'Gaming Headphones', weight = 7000, type = 'item', image = 'hrheadphone.png', unique = false, useable = true, shouldClose = true, description = 'Gaming Headphones' },
hrchamptrphy = { name = 'hrchamptrphy', label = 'Gold Champ Trophy', weight = 7000, type = 'item', image = 'hrchamptrphy.png', unique = false, useable = true, shouldClose = true, description = 'Gold Champ Trophy' },
hrgoldbagtrphy = { name = 'hrgoldbagtrphy', label = 'Gold Bag Trophy', weight = 7000, type = 'item', image = 'hrgoldbagtrphy.png', unique = false, useable = true, shouldClose = true, description = 'Gold Bag Trophy' },
-- If you have it don't add it
screwdriverset = { name = 'screwdriverset', label = 'Toolkit', weight = 1000, type = 'item', image = 'screwdriverset.png', unique = false, useable = false, shouldClose = false, description = 'Very useful to screw... screws...' },
firstaid = { name = 'firstaid', label = 'First Aid', weight = 2500, type = 'item', image = 'firstaid.png', unique = false, useable = true, shouldClose = true, description = 'You can use this First Aid kit to get people back on their feet' },
water_bottle = { name = 'water_bottle', label = 'Bottle of Water', weight = 500, type = 'item', image = 'water_bottle.png', unique = false, useable = true, shouldClose = true, description = 'For all the thirsty out there' },
sandwich = { name = 'sandwich', label = 'Sandwich', weight = 200, type = 'item', image = 'sandwich.png', unique = false, useable = true, shouldClose = true, description = 'Nice bread for your stomach' },
phone = { name = 'phone', label = 'Phone', weight = 700, type = 'item', image = 'phone.png', unique = true, useable = false, shouldClose = false, description = 'Neat phone ya got there' },
rollcash = { name = 'rollcash', label = 'Rolled Cash', weight = 0, type = 'item', image = 'rollcash.png', unique = true, useable = true, shouldClose = true, description = 'Rolled Cash' },
goldbar = { name = 'goldbar', label = 'Gold Bar', weight = 7000, type = 'item', image = 'goldbar.png', unique = false, useable = false, shouldClose = true, description = 'Looks pretty expensive to me' },
watchcase = { name = 'watchcase', label = 'Watch Case', weight = 7000, type = 'item', image = 'watchcase.png', unique = false, useable = false, shouldClose = true, description = 'Watch Case' },
OX INVENTORY
Go to ox_inventory/modules/items.client.lua and add this :
Item('hrcar', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent('zat-houserobbery:client:UseRCCar')
end
end)
end)
Item('hrcontroller', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent('zat-houserobbery:client:UseRCController')
end
end)
end)Go to ox_inventory/data/items.lua and add this :
["fakefingerprints"] = {
label = "Fake Fingerprints Gloves",
weight = 7000,
stack = true,
close = true,
description = "Fake Fingerprints Gloves",
client = {
image = "fakefingerprints.png",
}
},
["hrgunner"] = {
label = "Gunner Trophy",
weight = 7000,
stack = true,
close = true,
description = "Gunner Trophy",
client = {
image = "hrgunner.png",
}
},
["hrcamera"] = {
label = "Camera",
weight = 7000,
stack = true,
close = true,
description = "Camera",
client = {
image = "hrcamera.png",
}
},
["hrlaptop"] = {
label = "Laptop",
weight = 7000,
stack = true,
close = true,
description = "Laptop",
client = {
image = "hrlaptop.png",
}
},
["hrpuma"] = {
label = "Puma Sculpt",
weight = 7000,
stack = true,
close = true,
description = "hrpuma Sculpt",
client = {
image = "hrpuma.png",
}
},
["hrchamptrphy"] = {
label = "Gold Champ Trophy",
weight = 7000,
stack = true,
close = true,
description = "Gold Champ Trophy",
client = {
image = "hrchamptrphy.png",
}
},
["hrgoldbagtrphy"] = {
label = "Gold Bag Trophy",
weight = 7000,
stack = true,
close = true,
description = "Gold Bag Trophy",
client = {
image = "hrgoldbagtrphy.png",
}
},
["hrheadphone"] = {
label = "Gaming Headphones",
weight = 7000,
stack = true,
close = true,
description = "Gaming Headphones",
client = {
image = "hrheadphone.png",
}
},
["hrgcontrol"] = {
label = "Gaming Controller",
weight = 7000,
stack = true,
close = true,
description = "Gaming Controller",
client = {
image = "hrgcontrol.png",
}
},
["hrconsole"] = {
label = "Gaming Console",
weight = 7000,
stack = true,
close = true,
description = "Gaming Console",
client = {
image = "hrconsole.png",
}
},
["hrplaque"] = {
label = "Reward Plaque",
weight = 7000,
stack = true,
close = true,
description = "Reward Plaque",
client = {
image = "hrplaque.png",
}
},
["hrcontroller"] = {
label = "Trevis RC Controller",
weight = 7000,
stack = true,
close = true,
description = "Trevis RC Controller",
client = {
image = "hrcontroller.png",
}
},
["hrcar"] = {
label = "Trevis RC Car",
weight = 7000,
stack = true,
close = true,
description = "Trevis RC Car",
client = {
image = "hrcar.png",
}
},
["watchcase"] = {
label = "Watch Case",
weight = 7000,
stack = true,
close = true,
description = "Watch Case",
client = {
image = "watchcase.png",
}
},QS INVENTORY
Go to qs-inventory/shared/items.lua and add this :
['fakefingerprints'] = {
name = 'fakefingerprints',
label = 'Fake Fingerprints Gloves',
weight = 7000,
type = 'item',
image = 'fakefingerprints.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Fake Fingerprints Gloves',
},
['hrgunner'] = {
name = 'hrgunner',
label = 'Gunner Trophy',
weight = 7000,
type = 'item',
image = 'hrgunner.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gunner Trophy',
},
['hrcamera'] = {
name = 'hrcamera',
label = 'Camera',
weight = 7000,
type = 'item',
image = 'hrcamera.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Camera',
},
['hrlaptop'] = {
name = 'hrlaptop',
label = 'Laptop',
weight = 7000,
type = 'item',
image = 'hrlaptop.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Laptop',
},
['hrpuma'] = {
name = 'hrpuma',
label = 'Puma Sculpt',
weight = 7000,
type = 'item',
image = 'hrpuma.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'hrpuma Sculpt',
},
['hrchamptrphy'] = {
name = 'hrchamptrphy',
label = 'Gold Champ Trophy',
weight = 7000,
type = 'item',
image = 'hrchamptrphy.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gold Champ Trophy',
},
['hrgoldbagtrphy'] = {
name = 'hrgoldbagtrphy',
label = 'Gold Bag Trophy',
weight = 7000,
type = 'item',
image = 'hrgoldbagtrphy.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gold Bag Trophy',
},
['hrheadphone'] = {
name = 'hrheadphone',
label = 'Gaming Headphones',
weight = 7000,
type = 'item',
image = 'hrheadphone.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gaming Headphones',
},
['hrgcontrol'] = {
name = 'hrgcontrol',
label = 'Gaming Controller',
weight = 7000,
type = 'item',
image = 'hrgcontrol.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gaming Controller',
},
['hrconsole'] = {
name = 'hrconsole',
label = 'Gaming Console',
weight = 7000,
type = 'item',
image = 'hrconsole.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Gaming Console',
},
['hrplaque'] = {
name = 'hrplaque',
label = 'Reward Plaque',
weight = 7000,
type = 'item',
image = 'hrplaque.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Reward Plaque',
},
['hrcontroller'] = {
name = 'hrcontroller',
label = 'Trevis RC Controller',
weight = 7000,
type = 'item',
image = 'hrcontroller.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Trevis RC Controller',
},
['hrcar'] = {
name = 'hrcar',
label = 'Trevis RC Car',
weight = 7000,
type = 'item',
image = 'hrcar.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Trevis RC Car',
},
['watchcase'] = {
name = 'watchcase',
label = 'Watch Case',
weight = 7000,
type = 'item',
image = 'watchcase.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Watch Case',
},
Go to qs-inventory/server/custom/misc/CreateUseableItem.lua and add this :
CreateUsableItem('hrcar', function(source, item)
local src = source
TriggerClientEvent('zat-houserobbery:client:UseRCCar', src)
end)
CreateUsableItem('hrcontroller', function(source, item)
local src = source
TriggerClientEvent('zat-houserobbery:client:UseRCController', src)
end)
DIALOG
ZAT DIALOG
If you have zat-dialog then add this to zat-dialog/shared/config.lua
ENSURE RESOURCES
Last updated