π₯Bundle Metadata
Metadata attached to every bundle item generated by the script.
This section is for developers who want to read, log, modify, or integrate bundle data with other systems (economy, black market, logs, etc.).
Each bundle contains a structured metadata table when created.
π¦ Bundle Metadata Structure
When a bundle is generated (register, chest, bag, safe), it includes this table:
{
rid = "robbery-unique-id",
serial = "unique-bundle-id",
source = "register", -- register, bag, chest, safe, etc.
size = "M", -- S / M / L
worth = 750, -- payout value
created = 1710000000, -- unix timestamp
expires = 1710180000 -- unix timestamp
}π Field Reference
rid
Unique robbery identifier
serial
Unique bundle UUID
source
Loot source type (register, bag, chest, etc.)
size
Bundle tier (S, M, L)
worth
Value defined by BundleTables
created
Timestamp bundle was created
expires
Timestamp bundle expires
metadata
Used internally for TTL and cleanup
π§ͺ Example (Register Bundle)
π§° Developer Usage Examples
β Read bundle metadata (QB/OX)
β Extend bundle value (custom economy)
β Check expiry
β Add custom fields (safe)
π Notes
Expiry & cleanup are handled automatically by the script.
Modifying metadata won't break the script as long as required keys remain.
Use bundle metadata for logging, rewards, discord webhooks, reputation systems, etc.
Last updated