Configuration

Client and server configuration for Alpy SafeZones.

Client settings are in config.lua. Server permissions, database, Discord, and global toggles are in server/server.config.lua.

Client — config.lua

Config.Locale = 'en'
Config.OpenCommand = 'safezones'
Config.UILibrary = 'auto'   -- lation_ui, ox_lib, okokNotify, etc.
Config.TickInterval = 500
Config.ShowZoneWalls = false

New zone defaults

Config.Defaults = {
  noPvp        = true,
  noVehicleDmg = true,
  noExplosions = true,
  noWeapons    = true,
  noPunch      = true,
  speedLimit   = false,
  speedMax     = 50,
  showMarker   = true,
  showBlip     = true,
  notifyEnter  = true,
  notifyExit   = true,
  active       = true,
}

Server — server.config.lua

ServerConfig.Framework = 'auto'   -- esx | qb | ox | standalone
ServerConfig.AllowedGroups = { 'admin', 'superadmin', 'mod' }
ServerConfig.AcePermission = 'safezones.admin'
ServerConfig.UseDatabase   = true
ServerConfig.DatabaseTable = 'alpy_safezones'

Global zone behaviour

ServerConfig.Settings gates which options appear in the admin UI (PvP, weapons, speed limit, markers, blips, notifications, Discord logging).