Skip to content

ngd-publicstorage

Install guide for ngd-publicstorage

Buy ngd-publicstorage
On this page
ngd-publicstorage

Installation Steps#

  1. Install ngd-Bridge
    Follow the guide to install ngd-Bridge HERE.

  2. Install ngd-publicstorage
    Place ngd-publicstorage into your [ngd] folder. This script must be started after ngd-Bridge.

  3. Database
    No SQL to import — the ngdpublicstorage_units table is created automatically the first time the resource starts.

  4. Add the break-in item
    Add the ngd_psbruteforcer item to your inventory (used by non-police players to force a unit), then copy its image from the img folder into your inventory's images folder.

Items List (OX)
lua
["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)
lua
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)
lua
['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's Coords, Size, stashName, unitPrice, inventory invSlots/invWeight, and whether police (canForce) or players (canBreakIn) may force it open.
  • Rent limit — Config.MaxUnits caps how many units a player can rent.
  • Police force entry — Config.PoliceJob and Config.RequiredPoliceGrade set who can force a door; Config.PoliceMinigame and Config.PoliceForceCooldown gate it further.
  • Break-in — Config.ForceItem (the bruteforcer), Config.BreakItemChance, and the Config.BreakInCooldownSuccess / Config.BreakInCooldownFail cooldowns.
  • Discord logs — set Config.DiscordLogs = true and add your webhook in server/editableserver.lua.

Grant Mode#

Note

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 — set true to enable grant mode (default false, where players rent units themselves).
  • Config.AdminCommand — the command that opens the admin menu (default storageadmin).
  • 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


Warning

Do you still need help? Open a ticket in our Discord