GCMod

Configuration

Configuration reference and runtime behavior for gcm_pawnshop.


Root config (config.lua)

Config.Locale
  • Type: string
  • Current: 'en'
  • Allowed: locale keys available in locales.lua (en, es, plus custom)
  • Impact: Controls NUI and notification language strings.
Config.Debug
  • Type: boolean
  • Current: false
  • Allowed: true / false
  • Impact: Enables debug prints for framework/inventory and callbacks.
Config.Logs.enable
  • Type: boolean
  • Current: true
  • Allowed: true / false
  • Impact: Enables Discord sale logs.
Config.Logs.webhook
  • Type: string
  • Current: configured Discord webhook URL
  • Allowed: valid https://discord.com/api/webhooks/... URL
  • Impact: Destination for sale log embeds.
Config.ImagePath
  • Type: string
  • Current: 'https://cfx-nui-qb-inventory/html/images/'
  • Allowed: valid base URL ending with /
  • Impact: Base path used by NUI item image rendering.

Runtime options (Config.PawnShops[index])

label
  • Type: string
  • Current: 'Test Pawn Shop'
  • Allowed: any non-empty string
  • Impact: Name shown on blip and UI.
coords
  • Type: vector4
  • Current: vector4(185.34, -1456.45, 29.14, 227.64)
  • Allowed: valid world position with heading
  • Impact: Main pawnshop interaction and ped spawn location.
blackMoney
  • Type: boolean
  • Current: false
  • Allowed: true / false
  • Impact: Pays sale proceeds in black money account/item instead of cash.
ped.enable / ped.model / ped.animation.*
  • Type: table
  • Current: enabled with s_m_y_dealer_01 and idle animation set
  • Allowed: valid ped model and animation dict/name/flag
  • Impact: Controls ped creation and animation at shop.
marker.enable / marker.type / marker.scale / marker.color / marker.coords
  • Type: table
  • Current: marker disabled in sample (enable = false)
  • Allowed: valid GTA marker values
  • Impact: Shows optional marker near pawnshop interaction point.
blip.enable / blip.sprite / blip.color / blip.scale
  • Type: table
  • Current: enabled (sprite = 52, color = 2, scale = 0.8)
  • Allowed: valid blip values
  • Impact: Controls map visibility and style of pawnshop location.
hoursOpen.enable / hoursOpen.open / hoursOpen.close
  • Type: table
  • Current: disabled (enable = false, open = 22, close = 6)
  • Allowed: hour integers 0-23
  • Impact: Restricts interaction to configured time window when enabled.
items[itemName] = { label, price }
  • Type: map<string, table>
  • Current: sample items (phone, bandage, parachute, lockpick, radio)
  • Allowed: valid inventory item keys and numeric prices
  • Impact: Defines sellable items and payout values.