Studios
Arcadehouse-3.jpg

Configuration

SoonArcadeQBCore · Qbox · ESX
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Everything is in config.lua, which is not escrowed. The main sections:

  • Staff: command name, ACE group, and an optional glitch-admin panel permission.
  • Machines: use range, stream range, maximum machines, target reach and icons, and how long a player's starting point is remembered.
  • Money: which accounts are charged and in what order, the payout account, a house cut, whether owners and staff play free, and how owner ids are matched.
  • Defaults and limits for new machines' prices and passes.
  • Zones: on or off, notifications, the default size and the preview colour.
  • Floor tool: maximum distance and maximum height jump.
  • Cabinet games: on or off, freeze the player while playing, board length, save interval, the sound for each event (GTA frontend sounds only) and the score sanity caps (Config.ScoreRate per second and Config.ScoreMax per play).
  • Machine limit: Config.MaxMachines (default 300) caps how many machines can exist. Every machine is sent to every player in one shared state, so on a busy server keep the total well under the cap.
  • Props: the placeable props, their categories and the game each one starts with.
  • Games: the game list, which you can add to or remove from.

Prop pictures in the Place tab are optional and the package ships none, so each prop shows an icon. To add pictures, create an images folder with one <model>.png per prop model in Config.Props and add images/*.png to the files list in fxmanifest.lua.

Languages#

All text is in locales/en.lua. To translate, copy it to locales/<code>.lua, change Locales.en to Locales.<code>, translate the right-hand side, and set Config.Locale = '<code>'. Missing keys fall back to English.

Configuration reference#

These settings come from the inspected package. Tables contain nested fields; edit them using the examples in the supplied file. Keep secrets in server-only configuration.

config.lua defaults#

Setting Default / editing guidance
Config.Locale 'en'
Config.Debug false
Config.AdminCommand 'arcadeadmin'
Config.AdminGroup 'group.admin'
Config.AdminPanelAction 'panel_arcade'
Config.UseRange 2.5
Config.StreamRange 45.0
Config.MaxMachines 300
Config.TargetDistance 2.0
Config.TerminalRadius 0.6
Config.TargetIcons Table; fields and examples are in the supplied configuration file.
Config.OriginTTL 2 * 60 * 60
Config.PayAccounts Table; fields and examples are in the supplied configuration file.
Config.PayoutAccount 'cash'
Config.HouseCut 0
Config.OwnersPlayFree true
Config.StaffPlayFree true
Config.OwnerMatch Table; fields and examples are in the supplied configuration file.
Config.Defaults Table; fields and examples are in the supplied configuration file.
Config.Limits Table; fields and examples are in the supplied configuration file.
Config.Zones Table; fields and examples are in the supplied configuration file.
Config.Floor Table; fields and examples are in the supplied configuration file.
Config.MenuTheme 'wardrobe'
Config.CabinetGames Table; fields and examples are in the supplied configuration file.
Config.Sounds Table; fields and examples are in the supplied configuration file.
Config.ScoreRate Table; fields and examples are in the supplied configuration file.
Config.ScoreMax Table; fields and examples are in the supplied configuration file.
Config.PropCats Table; fields and examples are in the supplied configuration file.
Config.Props Table; fields and examples are in the supplied configuration file.
Config.Games Table; fields and examples are in the supplied configuration file.
Config.AccessTypes Table; fields and examples are in the supplied configuration file.