Skip to content

Building, flags & raids

Bases belong to factions, not to single characters. Settings marked (F1) in bs_building/config/config_building.lua can be changed live in the F1 console.

The build menus, instant build, tiers, power and vending are covered on Building v2.

  • F2 opens the build wheel. Pick a category, then a piece. Each piece shows what it costs.
  • The ghost snaps to nearby pieces. Mouse wheel rotates, Shift toggles snapping, left click places, right click cancels.
  • A placed frame needs its materials, then “Hammer it together” with a hammer.
  • Materials can also come from faction storage boxes and crafting stations within storageRadius (10 m) when pullFromStorage is on.
  • Demolish refunds everything within 10 minutes, half after that.
  • Rank permissions build, demolish and storage are set per rank in the faction panel.

You can only build inside one of your faction’s flags (flagRadius, 50 m). There are two kinds.

FlagItemRules
Safezonesafezone_flagPlayer factions only, one each. No PvP, no walkers, never raidable, hidden from outsiders
Outpostfaction_flagUp to maxOutposts (2) per player faction, vanilla factions get 1. Raidable during a declared raid

Only the Leader can place a flag. World vehicles never spawn inside a flag zone.

Nobody gets raided by surprise. To hit an outpost:

  1. The Leader or Vice Leader opens the faction menu, Raids, and declares on the other faction.
  2. The raid lasts raidDeclareMinutes (180). After that the same faction waits raidCooldownMinutes (720) before it can declare again.
  3. Damage only counts inside the raid window, raidStartHour to raidEndHour (18:00 to 23:00 server time).

What breaks things: C4, pipe bombs and grenades (by GTA explosion type, see Building.Explosions), the sledgehammer, the angle_grinder on code locks, and cars ramming fences, gates, barricades and spikes. Defenders get an alert and a map ping. Zombies never damage bases.

  • Doors, gates, hatches and storage take a 4-digit code. Faction members skip it.
  • Generators burn diesel and power lights within 18 m. Rain collectors fill bottles. Beds and sleeping bags are respawn points with a 5 minute cooldown.

If no member visits for decayDays (7), every piece loses HP each tick until it falls. Pieces that lose their support fall too.

F10, World, Bases manager: list bases, teleport, delete a base or a piece, transfer ownership, reset decay. freeBuildAdmins (F1) lets every admin place finished pieces for free. Raids, demolitions and staff actions go to bs_guard_log as build_*.

Migrations 031_building.sql (pieces and bases) and 034_base_flags.sql (flag kinds). See Database migrations.