Stashes
A stash has an id, a label, a max weight and item stacks, like the inventory. It opens in the inventory window, next to the player's (Deposit, Take, double click). The content is saved in rlx_stashes.
Three kinds exist by themselves (Config.Stashes):
| Id | Who has access |
|---|---|
society:<job> | Employees (min grade Config.Stashes.societies.minGrade). "Stash" points of rlx_society (StashPoints) and boss menu. |
trunk:<plate> | Standing behind an owned vehicle: the inventory key (Tab) opens its trunk. |
glovebox:<plate> | Sitting inside: the inventory key opens the glovebox. |
Other vehicles (traffic, /car) have temporary ones (vtrunk:<netId>, vglovebox:<netId>), emptied when the vehicle disappears (Config.Stashes.trunks.anyVehicle).
Your own stashes (house, locker, hideout):
RLX.RegisterStash("house:12", {
label = "House", maxWeight = 200000,
owner = citizenid, -- or job = "police" / { police = 2 }, gang = ...
coords = { x = -269.4, y = -955.3, z = 31.2 }, radius = 3.0, -- optional: must be next to it
})
RLX.OpenStash(source, "house:12") -- false, reason if refused
RLX.AddStashItem("house:12", "bread", 5) · RLX.RemoveStashItem(id, name, n) · RLX.GetStash(id) · RLX.ClearStash(id)
RLX.GetStashItemCount(id, name) · RLX.CanAccessStash(source, id)On the client: RLX.OpenStash(id), RLX.GetVehicleStash() (the vehicle stash in reach), RLX.GetOpenStash(). The openStash hook allows locks and keys; temporary = true: never saved.
The inventory window (rlx_inventory) and items on the ground
Tab (the inventory action; F5 in loadout mode): in three columns, in the colors of RLX. The player on the left: a grid of 40 boxes (Config.Inventory.slots), each item in its own box, kept with the character; the count and weight top right, the label at the bottom (a gun: magazine / spare rounds, "12/38", and its condition bar). In the middle: the quantity (empty = the whole stack) and Use, Give, Close. On the right: the open stash, otherwise the ground. The boxes 1 to 5 are the hotbar: keys 1 to 5 use what is in them (a weapon: in hand / away) and show the five boxes for a moment.
- Drag and drop: to another box (swapped with what is there; the same item is stacked; with a quantity, into an empty box: split there), to the right side (deposit into the stash, or drop on the ground), from the stash (take), onto Use or Give.
- Hover: the details (description, magazine, spare rounds, condition, serial number, attachments, weight). Double-click: use (with a stash open: deposit, or take). Right-click: Use, Give, Split, Drop (Take, Take all in a stash).
- Pictures:
rlx_inventory/web/img/<item>.png(256 × 256, transparent), then<item>.svg, orimagein the item definition; otherwise the initials of the item. - Drop: the items go into a bag on the ground at the player's feet (a temporary stash
drop:<n>, merged with a bag within 1.5 m): anyone standing next to it opens the inventory and finds it on the right side (no "[E]" point;Config.Drops.pickupPoint = trueadds one). Empty: gone; afterConfig.Drops.minutes(15): gone.RLX.DropItem(source, slot, count),RLX.GetDrops(),RLX.GetNearbyDrop(source)(client:RLX.GetNearbyDrop()), hookdropItem, eventrlx:itemDropped. - Server API behind it:
xPlayer.moveItem(slot, toBox),xPlayer.splitItem(slot, count),xPlayer.slotAtPos(box); each stack haspos(its box) ingetInventory(). Client:RLX.MoveItem,RLX.SplitItem,RLX.DropItem.