Skip to content

Full Config — Admin ​

The complete configs/shared/admin.lua for Smash Down: Los Santos — panel access and placement settings.

TIP

See the setup guide for explanations and examples. Download this file as a reference, and merge changes with the config shipped in your installed version.

Download shared/admin.lua

lua
-- The /brawladmin panel + its cabinet placement tool (the sd-bombs admin panel, ported). Shared: the
-- server checks the aces and the placement limits, the client drives the placer with `Placement`.
return {
    Command = 'brawladmin', -- chat command that opens the panel; the ace it grants (command.brawladmin) is the view right
    Group = 'group.admin', -- ace principal granted the command + EditAce at start: full access
    ViewGroup = false, -- optional ace principal (e.g. 'group.mod') that may open the panel and look, never change anything
    EditAce = 'sd_brawl.edit', -- every change needs it: place / move / delete arcades, clear an arcade, void a match

    RefreshMs = 2500, -- ms between snapshot refreshes while the panel is open (skipped while busy / a modal is open)
    PlaceReach = 25.0, -- metres the placer's first aim ray reaches
    MaxPlaceDistance = 80.0, -- server: every placed cabinet must be this close to the admin's ped

    Placement = { -- the placement gizmo (sd-bombs' placer)
        SnapMove = 0.25, -- metres per step while snapping is on (X)
        SnapTurn = 15.0, -- degrees per step while snapping is on
        Nudge = 0.05, -- metres per frame the arrow keys / Page Up / Page Down move it (Shift x5)
        TurnStep = 5.0, -- degrees per mouse-wheel notch (Shift + wheel: 15, Ctrl + wheel: 1)
        Spacing = 0.95, -- metres between cabinet origins in a new bank (side by side, as you face the screens; the cabinet is 0.914 m wide, so this leaves a 3.6 cm gap)
        BankDir = -1, -- which way a new bank runs from cabinet 1, as you face the screens: -1 = to the RIGHT (along the prop's -X, the way the default delperro_pier bank runs), 1 = to the left
        MinGap = 0.6, -- the placer warns when a cabinet's origin is closer than this to another cabinet
    },
}