Studios
Small Resourceshouse-3.jpg

Configuration

SoonSmall ResourcesQbox
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Shared settings are in config.lua as the SmallConfig table. Each module keeps its own settings in <module>/config.lua or <module>/config.json. Player text is in locales/en.json; copy it to add a language, and missing keys fall back to English.

config.lua#

Key Default What it does
SmallConfig.modules.<name> true for every module except vonCasinoDoor (false) Turns a module on or off.
SmallConfig.modules.netGuard true Net event counter in server/guard.lua. Only active while glitch-poolcleaning is running.
SmallConfig.bridge.appearance 'glitch-appearance' Resource with setPedAppearance(ped, skin), used to dress combat log ghosts.
SmallConfig.bridge.lastStand 'glitch-ambulancejob' Resource with StartLastStand(attacker, weapon). When it is missing the player is killed.
SmallConfig.bridge.walkstyle 'rpemotes' Resource with getWalkstyle() and setWalkstyle(style, save).
SmallConfig.bridge.emoteCancel 'rpemotes' Resource with EmoteCancel(bool), used to block emotes during a carry.
SmallConfig.bridge.staffLog 'glitch-admin' Resource with Log(table) for /id and /modid. false turns the log off.
SmallConfig.hooks.buffs 'glitch-buffs' Resource with Drank(src) and Caffeine(src, item) exports.
SmallConfig.hooks.afkExemptState 'photoRun' Player state bag that pauses the AFK kick while it is set.
SmallConfig.hooks.stolenVehicleState 'glitchStolen' Vehicle state bag that marks a stolen vehicle, kept by the NPC clean-up and the no-NPC zones.
SmallConfig.hooks.hudAlcoholState 'hud_alcohol' Local player state bag set for a HUD resource.
SmallConfig.hooks.hudConcussionState 'hud_concussion' Local player state bag set for a HUD resource.
SmallConfig.hooks.notifyEvents true Registers the glitch-notify and glitch-textui client events.
SmallConfig.hooks.lockpickItems true Registers the lockpick and advancedlockpick items to fire lockpicks:UseLockpick.
SmallConfig.staffLogWebhook 'idcheck' Key sent with each /id and /modid log entry.
SmallConfig.aces.bypassBlacklist 'founder' Ace that may spawn blacklisted models.

Every bridge and hooks value can be set to false on a server that does not use it.

Module settings#

File Key settings
qbx_taser/config.lua item = 'taser_cartridge', bays = 2, reloadKey = 'R', reloadTime = 2500, minShotGap = 600, afid.enabled = true, afid.distance = 1.5
qbx_knockout/config.lua koHealth = 125, fistDamageScale = 0.5, lethalWhileOut = true, hitsToKill = 6, knockedOut = 20000, groggy = 30000, cooldown = 15000, darkness = 215
qbx_tackle/config.lua tackleRange = 1.6, maxDistance = 2.0, tackledRagdoll = 3000, tacklerHeadStart = 500, diveTime = 250, grace = 3000, getUpTimeout = 3000
qbx_afk/config.json timeUntilAFKKick = 1800 (seconds), ignoreGroupsForAFK (mod and admin are exempt)
qbx_showids/config.lua player (/id: radius 40.0, 5000 ms, 10000 ms cooldown) and mod (/modid: radius 100.0, 8000 ms, aces mod and moderator, showName = true)
qbx_kickscene/config.json enabled, useOnKick, useOnBan, sceneDuration = 10000, guardModel, vanModel, command.name = 'kidnapkick', toggleCommand.name = 'kickscene'
qbx_ignore/config.lua disable.idleCamera, disable.ambience, disable.headshots (all true), headshotMultiplier = 2.0, noNpcZones, noGeneratorAreas, blacklisted
qbx_hudcomponents/config.lua disable.hudComponents, disable.controls = {}, disable.recticle = true
qbx_disableservices/config.lua maxWantedLevel = 0 and enabledServices, where only service 8 (road blocks) is true
qbx_vehiclepush/config.json enabled = true, damageNeeded = 0.0, interactionDistance = 0.8, blacklistedClasses = [13, 14, 15, 16]
qbx_flipvehicle/config.json flipingTime = 30000, maxDistance = 4.5
qbx_jumpspam/config.lua window = 2500, maxJumps = 3, ragdollMin = 1500, ragdollMax = 2500
combatlog/config.lua duration = 15, radius = 100.0, interactDistance = 1.5, skinTable = 'playerskins', reasonList
npccleanup/config.lua waitTime = 3000, playerRange = 150.0, vehiclesToDelete
qbx_entitiesblacklist/config.lua blacklisted, a table of model hashes set to true
qbx_consumables/config.lua consumables.food, consumables.drink and consumables.alcohol, with min, max, anim, prop and stressRelief per item
qbx_itempickup/config.json disabledPickups, a list of PICKUP_WEAPON_* names
qbx_recoils/config.lua Recoil value per weapon hash
qbx_staticemitters/config.lua enabled, menuAce = 'admin', menu.copyToClipboard, and the emitters by game build
qbx_teleports/config.json teleports, an empty list by default
qbx_removeentities/config.json objects and hide, both empty by default
vonCasinoDoor/config.lua doorName, center, blockerIpl, panelModel, panels

Things to change on a new server#

  • qbx_ignore/config.lua: noNpcZones ships empty with one commented example. noGeneratorAreas lists the default Los Santos hospitals, police stations, the military base and the airport. Replace the list or set it to {}.
  • qbx_teleports/config.json and qbx_removeentities/config.json ship empty. Add your own passages and hidden props.
  • vonCasinoDoor/config.lua is only for one specific casino MLO door and is off by default. Leave it off unless you run that map.
  • qbx_entitiesblacklist/config.lua lists the vehicle models that cannot spawn. Trim it to what you want.
  • combatlog/config.lua: set skinTable to the table your appearance resource saves skins in.