Configuration · origen_tradingcards
All settings live in shared/config.lua.
General
| Variable | Default | Description |
|---|---|---|
Config.Debug | false | Enable debug logging to server console |
Config.Locale | 'es' | UI language — 'es' | 'en' |
Config.Framework | 'auto' | Framework — 'auto' | 'qb' | 'qbx' | 'esx' |
Config.Inventory | 'origen' | Inventory system — 'origen' | 'ox' | 'qb' | 'qs' |
Config.Menu | 'auto' | Menu system — 'auto' | 'qb-menu' | 'ox_lib' |
Config.AdminGroups | { 'admin', 'superadmin' } | ESX group names with admin access |
Items
Maps the logical item roles to their actual inventory item names. Change these if your server uses different item name conventions.
lua
Config.Items = {
album = 'album',
pack = 'albumpack',
}Pack behavior
| Variable | Default | Description |
|---|---|---|
Config.PackSize | 5 | Number of cards delivered when a pack is opened |
Config.MaxGiveCount | 100 | Maximum number of items an admin can give in a single operation |
Shop
| Variable | Default | Description |
|---|---|---|
Config.Shop.InteractionRadius | 2.5 | Distance in meters to activate a shop NPC |
Config.Shop.InteractionKey | 38 | Control key used to open the shop (38 = E) |
Rarities
Defines the drop probability and visual CSS filter for each card rarity. Chances must always sum to 100.
lua
Config.Rarities = {
{ name = 'Common', chance = 60, filter = 'grayscale(1) brightness(1.1)' },
{ name = 'Uncommon', chance = 25, filter = 'sepia(1) hue-rotate(65deg) saturate(2.5) brightness(1)' },
{ name = 'Rare', chance = 10, filter = 'sepia(1) hue-rotate(185deg) saturate(3) brightness(1)' },
{ name = 'Epic', chance = 4, filter = 'sepia(1) hue-rotate(245deg) saturate(3.5) brightness(1.1)' },
{ name = 'Legendary', chance = 1, filter = 'sepia(1) hue-rotate(-28deg) saturate(4) brightness(1.4) contrast(1.1)' },
}| Field | Description |
|---|---|
name | Internal rarity name — must match the suffix of the card item (e.g. Common → albumcardcommon) |
chance | Drop weight — all chances must sum to 100 |
filter | CSS filter string applied to the card image in the UI |
If a rarity has no cards defined for a given album, the system falls back to Common and then to the full card pool. Always keep Common populated with cards.