Skip to content

configuration

All settings are in config.lua.

Language#

lua
Config.Locale = 'en'  -- 'en' or 'tr'

Lifetime#

How long objects stay on the map (minutes). Set to 0 for no limit.

lua
Config.Lifetime = {
    TapeMinutes = 180,
    PropMinutes = 180,
}

Cleanup jobs#

Jobs that can remove nearby objects with [E]:

lua
Config.Cleanup = {
    InteractDistance = 2.5,
    ScanDistance = 10.0,
    Jobs = {
        police = 0,
        roadworkers = 0,
    },
}

0 = minimum grade required.

Tape settings#

lua
Config.MaxTapeDistance = 14.0   -- max line length (meters)
Config.MinTapeDistance = 0.5    -- min line length
Config.RaycastDistance = 25.0   -- aim distance
Config.MaxSegments = 45         -- max segments per line

Props#

lua
Config.Props = {
    PlaceDistance = 2.5,
    ManageDistance = 8.0,
    MaxPlaced = 40,   -- per player
}

Supply box#

Opens the full prop menu from one inventory item:

lua
Config.SupplyBox = {
    enabled = true,
    item = 'barrier_supply_box',
    -- jobs = { police = 0 },  -- optional restriction
}

Add a tape#

lua
Config.Tapes = {
    { model = 'police', item = 'tape_police' },
}
  • model — must match a model in s4-line-props
  • item — optional ox_inventory item name

Add a prop#

lua
Config.ExtraProps = {
    {
        id = 'traffic_cone',
        model = 'prop_mp_cone_04',
        item = 'prop_traffic_cone',       -- optional
        jobs = { police = 0 },            -- optional
    },
}
  • Props without item only appear in the menu (not as inventory items).
  • Props with jobs are restricted to those jobs.

Inventory bridge#

lua
Config.Bridge = {
    AutoRegisterItems = true,
    ConsumeOnUse = false,
    DefaultItemWeight = 200,
    ItemImages = {
        enabled = true,
        folder = 'items',
    },
}

Text UI position#

lua
Config.TextUI = {
    position = 'bottom-center',
    offsetX = 0,
    offsetY = 0,
}

Options: left-center, right-center, top-center, bottom-center, center, top-left, top-right, bottom-left, bottom-right.