ngd-mailbox(Discontinued)

ngd-mailbox is an efficient mailbox/stash script that allows server owners to place mailbox props in front of people's houses or businesses.

ngd-mailbox has been discontinued and has been replaced by ngd-propstorage.

Installation Instructions:

  • Add the ngd-mailbox folder into your server's resource folder.

  • Open server.cfg and add ensure ngd-mailbox

  • Open config.lua and customize to your needs.

Dependencies:

  • QBCore/ESX

  • Target System

  • QB/LJ - Inventory or ESX OX Inventory

  • Polyzone

Features:

  • Custom prop. This is so the mailbox script won't interfere with any of your other scripts.

  • Animations with custom positions.

  • Configurable spawn zone

  • 0.00 resmon

Script can be restarted live without any issues!

If you have any problems - Join our Discord for support!

Click to view QB Config

Config = {}

--Utilities
Config.debug = false        --Leave off unless needed.
Config.GlobalSpawn = true  --This will spawn ALL mailbox props on player load instead of using PolyZones.  (Adds more client load by a small amount)
Config.Target = 'qb-target' --Target used

Config.MailBoxes = {
    [1] = {
        coords = vector4(-138.51, 973.25, 235.73, 162),   --Spawn coords of maiboxes
        house = 'House1',                                 --Stash name - can be used as reference of house postal/address
        position = vector4(-138.88, 972.02, 235.74, 339), --Position of player for animation
        spawnzone = 30,                                   --Radius mailbox will spawn/despawn (This does nothing if Config.GlobalSpawn = true)
    },
    [2] = {
        coords = vector4(-123.17, 896.89, 235.65, 277),
        house = 'House2',
        position = vector4(-122.11, 897.05, 235.68, 105),
        spawnzone = 30,

    },
}

Config.Lang = {
    ['openmailbox'] = "Check Mail",               --Text shown when targeting mailbox.
    ['openbox'] = "Rummaging Through Mailbox"     --Text show on progressbar when opening mailbox.

}
Click to view ESX Config
Config = {}

Config.debug = false                   --leave off unless needed.
Config.Target = 'qtarget'              --Target used
Config.Icon = 'fa-regular fa-envelope' --Font Awesome icon for target
Config.ProgressBar = true              --Requires esx_progressbar
Config.GlobalSpawn = true             --This will spawn ALL mailbox props on player load instead of using PolyZones.  (Adds more client load by a small amount)


Config.MailBoxes = {
    [1] = {
        coords = vector4(-138.51, 973.25, 235.73, 162),   --Spawn coords of maiboxes
        house = 'House1',                                 --Stash name - can be used as reference of house postal/address
        position = vector4(-138.88, 972.02, 235.74, 339), --Position of player for animation
        spawnzone = 30,                                   --Radius mailbox will spawn/despawn (This does nothing if Config.GlobalSpawn = true)
        InvSlots = 20,
        InvWeight = 20000,
    },
    [2] = {
        coords = vector4(-123.17, 896.89, 235.65, 277),
        house = 'House2',
        position = vector4(-122.11, 897.05, 235.68, 105),
        spawnzone = 30,
        InvSlots = 20,
        InvWeight = 20000,
    },
}


Config.Lang = {
    ['openmailbox'] = "Check Mail",                --Text shown when targeting mailbox.
    ['openbox'] = "Rummaging Through Mailbox",     --Text show on progressbar when opening mailbox.
}

--Inventory:
Config.OpenStash = function(stash)
    exports.ox_inventory:openInventory('stash', { id = stash })
end

Last updated