Installation
Dependencies
Ensure the following resources are installed and running before sd-pacificbank:
| Dependency | Options |
|---|---|
| Library | sd_lib |
| UI Library | ox_lib |
| Doorlock | ox_doorlock / qb-doorlock / nui_doorlock |
| Lasers | mka-lasers (optional) |
Step 1: Add the Resource
- Download
sd-pacificbankfrom Keymaster - Extract it into your server's
resourcesdirectory - Add
ensure sd-pacificbankto yourserver.cfgafter all dependencies
ini
ensure sd_lib
ensure ox_lib
ensure ox_doorlock
ensure mka-lasers
ensure sd-pacificbankStep 2: Import Doorlock Data
The Pacific Bank uses 13 security doors. Import the config for your doorlock system:
sql
-- Import sd-pacificbank/doorlock/ox_doorlock/oxDoorlock.sql into your database
-- This creates entries for securitydoor1 through securitydoor13lua
-- Copy the contents of sd-pacificbank/doorlock/qb-nui_doorlock/pacificbank.lua
-- into your qb-nui_doorlock config fileStep 3: Add Items
Register the required heist items in your inventory system:
lua
-- Add to ox_inventory/data/items.lua
['laptop_pink'] = {
label = 'Pink Laptop',
weight = 5000,
close = true,
description = 'A pink security Laptop',
},
['laptop_gold'] = {
label = 'Gold Laptop',
weight = 5000,
close = true,
description = 'A gold security Laptop',
},
['c4_bomb'] = {
label = 'C4 Brick',
weight = 1000,
close = true,
description = 'Very Dangerous! High-Yield Explosive.',
},
['large_drill'] = {
label = 'Large Drill',
weight = 20000,
close = true,
description = 'A Large Drill, good at cracking Secure Locks.',
},lua
-- Add to qb-core/shared/items.lua
['laptop_pink'] = { name = 'laptop_pink', label = 'Pink Laptop', weight = 5000, type = 'item', image = 'laptop_pink.png', unique = true, useable = true, shouldClose = true, description = 'A pink security Laptop' },
['laptop_gold'] = { name = 'laptop_gold', label = 'Gold Laptop', weight = 5000, type = 'item', image = 'laptop_gold.png', unique = true, useable = true, shouldClose = true, description = 'A gold security Laptop' },
['c4_bomb'] = { name = 'c4_bomb', label = 'C4 Brick', weight = 1000, type = 'item', image = 'c4_bomb.png', unique = true, useable = false, shouldClose = true, description = 'Very Dangerous! High-Yield Explosive.' },
['large_drill'] = { name = 'large_drill', label = 'Large Drill', weight = 20000, type = 'item', image = 'large_drill.png', unique = false, useable = false, shouldClose = true, description = 'A Large Drill, good at cracking Secure Locks.' },sql
-- Import sd-pacificbank/[SQL]/ESX/items.sql or run manually:
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('laptop_pink', 'Pink Laptop', 50),
('laptop_gold', 'Gold Laptop', 50),
('c4_bomb', 'C4 Brick', 10),
('large_drill', 'Large Drill', 200);Step 4: Copy Item Images
Copy the item images from sd-pacificbank/images/ to your inventory's image folder:
| Inventory | Image Path |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | <inventory>/html/images/ |
| qs-inventory | qs-inventory/html/images/ |
| codem-inventory | codem-inventory/html/itemimages/ |
| origen_inventory | origen_inventory/ui/images/ |
Pacific Bank Item Images4 images




TIP
If you are using a custom inventory, place the images wherever your inventory loads item icons from.
Step 5: Configure Laser Resource (Optional)
If using the laser grid feature, ensure mka-lasers is installed and set the resource name in config:
lua
Config.EnableLasers = true
Config.LaserResourceName = 'mka-lasers'Step 6: Start and Verify
- Start your server
- Check the server console for any errors
- Ensure all 13 doorlock entries are loaded
- Ensure the minimum police requirement is met before attempting the heist
WARNING
Make sure sd_lib is started before sd-pacificbank in your server.cfg, or the resource will fail to load.
