Storages

Storage

Create and manage custom storage containers (stashes).

CreateStorage

exports['skeexs-inventory']:CreateStorage(config)

Returns: table|nil, string|nil - storage, error

local storage, err = exports['skeexs-inventory']:CreateStorage({
    id = 'police_locker_1',
    label = 'Police Locker',
    coords = vector3(450.0, -990.0, 30.0),
    slots = { width = 5, height = 8 },
    maxWeight = 100000,
    access = { jobs = { 'police' } }
})

Config Options

Property
Type
Description

id

string

Unique identifier

label

string

Display name

coords

vector3

World position

slots

table

{ width, height }

maxWeight

number

Max weight in grams

access

table

Access restrictions

allowedItems

table

Item whitelist (optional)

Access Control


OpenStorage

Open storage for a player.

Returns: boolean, string|nil - success, error


CloseStorage


GetStorage

Returns: table|nil


StorageExists

Returns: boolean


UpdateStorage

Returns: boolean


DeleteStorage

Returns: boolean


Storage Item Operations

AddStorageItem

Returns: boolean, string|nil

RemoveStorageItem

Returns: boolean, string|nil

GetStorageItems

Returns: table[]

SetStorageItems

Returns: boolean

ClearStorage

Returns: boolean


CheckStorageAccess

Returns: boolean, string|nil - hasAccess, error

Last updated