πŸ“₯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

Field
Description

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