ngd-publicstorage
Install guide for ngd-publicstorage
Buy ngd-publicstorageOn this page
Installation Steps#
-
Install ngd-Bridge
Follow the guide to install ngd-Bridge HERE. -
Install ngd-publicstorage
Placengd-publicstorageinto your [ngd] folder. This script must be started afterngd-Bridge. -
Database
No SQL to import — thengdpublicstorage_unitstable is created automatically the first time the resource starts. -
Add the break-in item
Add thengd_psbruteforceritem to your inventory (used by non-police players to force a unit), then copy its image from theimgfolder into your inventory's images folder.
Items List (OX)
["ngd_psbruteforcer"] = {
label = "Storage Bruteforcer",
weight = 500,
stack = true,
close = true,
description = "Used to force open a storage unit.",
client = {
image = "ngd_psbruteforcer.png",
}
},
Items List (QB Format #1)
ngd_psbruteforcer = { name = 'ngd_psbruteforcer', label = 'Storage Bruteforcer', weight = 500, type = 'item', image = 'ngd_psbruteforcer.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Used to force open a storage unit.' },
Items List (QB Format #2)
['ngd_psbruteforcer'] = {['name'] = 'ngd_psbruteforcer', ['label'] = 'Storage Bruteforcer', ['weight'] = 500, ['type'] = 'item', ['image'] = 'ngd_psbruteforcer.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Used to force open a storage unit.'},
Configuration Notes#
- Storage units are defined in
config/units.lua— each unit'sCoords,Size,stashName,unitPrice, inventoryinvSlots/invWeight, and whether police (canForce) or players (canBreakIn) may force it open. - Rent limit —
Config.MaxUnitscaps how many units a player can rent. - Police force entry —
Config.PoliceJobandConfig.RequiredPoliceGradeset who can force a door;Config.PoliceMinigameandConfig.PoliceForceCooldowngate it further. - Break-in —
Config.ForceItem(the bruteforcer),Config.BreakItemChance, and theConfig.BreakInCooldownSuccess/Config.BreakInCooldownFailcooldowns. - Discord logs — set
Config.DiscordLogs = trueand add your webhook inserver/editableserver.lua.
Grant Mode#
Grant Mode makes storage staff-managed instead of rentable. Players can no longer rent or forfeit units — an admin assigns them through the /storageadmin menu (Grant, Revoke, Reassign, Set/Reset Pin, and Identify Units to label every door in-world).
Config.GrantMode— settrueto enable grant mode (defaultfalse, where players rent units themselves).Config.AdminCommand— the command that opens the admin menu (defaultstorageadmin).Config.IdentifyDuration— seconds the in-world unit labels stay visible when you use Identify Units.
Access to the admin menu is controlled by an ace permission. Add this to your server.cfg (adjust the group to match your setup):
add_ace group.admin command.storageadmin allow
Do you still need help? Open a ticket in our Discord