Configuration

This page documents every config field found in the shipped config.lua + a few optional fields used by code with defaults.


Locale / UI

Config.UILocale

Language used for NUI text dictionary.

  • Default: 'en'

  • Options: 'en', 'hr' (ships both in /locales)

Config.Locale

Language used for client/server notifications (TR() helper).

  • Default: 'en'


Killfeed

Config.KillFeed

Controls the killfeed widget.

Config.KillFeed = {
  enable = true,
  mode = 'lobby',         -- 'off' | 'global' | 'lobby'
  proximity = false,      -- if true: distance filter
  proxRange = 100.0,
  command = 'killovi',    -- local toggle per player
  maxItems = 6,
  showTeamColors = true,
  showHeadshot = true,
  showStreaks = true,
  sAndDEvents = true,
  icons = 'webp',
}
  • mode

    • off = no feed

    • global = show across buckets (no bucket check)

    • lobby = only for players in the same lobby/bucket

  • proximity

    • If enabled, feed lines may be filtered by distance (proxRange).


Ambulance bridge

Config.Ambulance.provider

Revive integration provider.

auto picks the first started ambulance resource from: wasabi_ambulance, tk_ambulancejob, qb-ambulancejob, esx_ambulancejob.

If none, Wargames falls back to an internal instant revive event.


Notifications

Config.Notify

Notification routing.

  • system = 'ox' uses lib.notify / ox_lib notify

  • system = 'okok' uses exports['okokNotify']:Alert(...)

  • system = 'esx' uses ESX.ShowNotification or esx:showNotification

  • none disables notifications


Entry marker (menu open)

Players open the Wargames NUI by standing inside radius and pressing E.


Instances / routing buckets

  • UseInstance = true puts players into routing buckets per lobby

  • dynamic = true creates a separate bucket per created lobby

  • base are starting bucket IDs used for each mode


Safe inventory snapshot (ox_inventory)

When enabled, Wargames snapshots the player inventory on join and restores it on leave. Blacklisted items are not restored (useful for bomb item / special weapons).

Requires ox_inventory running. If ox_inventory isn’t started, the resource will fallback gracefully.


Clothing system (team outfits)

Outfits are applied per mode/team via:

  • Config.TDM.Outfits

  • Config.SND.Outfits

If disabled, no outfit swapping is done.


FFA

Zone polygon

Zone enforcement

Clean spawns (safe spawn list)

Match target kills


TDM

Outfits


Inventory / Loadouts

Config.UseOxInventory

  • true = server gives loadouts via ox_inventory

  • false = client uses native weapon giving

Config.Loadouts

Each key becomes a selectable loadout in the NUI.

Optional: Config.ForceAmmo

If set (number), overrides every weapon’s ammo value.


S&D

Outfits


Optional fields used by code

Config.KillConfirmWindow

Used to validate kill confirmation timing.

  • Default (if unset): 10000 ms

Set it if your server has delayed death events.

Last updated