⚙️Configuration

Check the standard Config!

config.lua
Config = {}

Config.Information = {
    Framework = {
        oldesxevent = false, -- If you use an old version of ESX
        esxevent = "es_extended" -- If you have an old esx event use esx:getSharedObject
    },
    Main = {
        language = "de", -- The language that you select for the script. e.g "de" , "en", "fr", "pl"
        HudStartDelay = 1000, -- In ms if you want to delay the Hud Start
        KMH = true, -- If the hud should use KM/H of MPH
        enableesxstatus = true,
        hexfood = false,
        enablechat = true,
        hidegtahudcomponents = true,
        hidegtaammodisplay = true,
        moneysymbol = "$",
        enableblackmoney = true,
        Orga = {
            ServerName = "SService", -- Server name that is displayed on the upper right corner
            AfterHowManyLettersShouldEndRed = 1,
            DetailText = "ROLEPLAY"
        }
    },
    Length = {
        AnnounceLength = 5000, -- The length of the Main announce in ms
        Notifys = 5000
    },
    Ms = {
        ["Speedo1"] = 100,
        ["Speedo2"] = 100,
        ["Speedo3"] = 10
    }
}

Config.Commands = {
    OOC = {
        commandname = "ooc",
        enableooccommand = true,
        showingamename = true,
        showname = true,
        playerradius = 10.0
    },
    AdminChat = {
        commandname = "tc",
        enableadminchatcommand = true,
        showingamename = true,
        showname = true,
        ace = {
            ["admin"] = true
        }
    },
    CinemaMode = {
        active = true,
        enablekeycinemamode = true,
        enablecinemamodecommand = true,
        commandname = "cinemamodus",
        animation = true,
        barheight = 0.3
    },
    TestCommand = {
        active = true,
        commandname = "test"
    }
}

Config.Utils = {
    Engine = {
        EnableEngineSystem = true,
        commandname = "engine"
    },
    Indicator = {
        LeftRightIndicators = true,
        WarnIndicators = true
    },
    SpeedLimiter = {
        active = true
    }
}

Config.HudSettings = {
    AllowCommand = true,
    Key = {
        RegisterKey = true,
        PressKey = "o"
    }
}

Config.DefaultKeys = {
    Chat = "t",
    CinemaModus = "u",
    enambeengine = "z",
    warnsignal = "UP",
    rightindicator = "RIGHT",
    leftindicator = "LEFT",
    speedlimiter = "g"
}

Config.DefaultDesign = {
    HudDesign = 1,
    AnnounceDesign = 1,
    SpeedoMeterDesign = 1,
    BottomDesign = 1,
    ChatDesign = 1,
    FoodDesign = 1,
    LeftBottomDesign = 1,
    RightTop = 1
}

Config.DefaultDisplay = {
    HudDisplay = 1,
    AnnounceDisplay = 1, -- 1 == true / 0 == false
    SpeedometerDisplay = 1,
    HelpDesignDisplay = 1,
    FoodAndDrinkDisplay = 1,
    PlayerInfosDisplay = 1,
    Lefttopinfosdisplay = 1,
    Righttopinfosdisplay = 1,
    RightTopTimedisplay = 1,
    RightTopPlayerdisplay = 1,
    RightTopIDdisplay = 1
}

Config.Chat = {
    BlacklistetCommands = {"txAdmin"}
}

Config.Voice = {
    Voice = "saltychat",
    -- Either "pma", 'saltychat' or 'mumble' / you can also insert a custom one in the voicemanager.lua
    enablevoicrange = true,
    distancetype = "m",
    defaultvoiceindexsalty = 2,
    distance = {
        {
            meters = 2
        },
        {
            meters = 10
        },
        {
            meters = 20
        },
        {
            meters = 30
        },
        {
            meters = 50
        }
    },
    shownotifys = true,
    voicemodus = 4,
    Marker = {
        markertype = 1,
        markercolor = {r = 255, g = 1, b = 1}
    }
}

}
config_server.lua
ServerConfig = {}

ServerConfig.Announces = {
    {
        name = "serverannounce",
        length = 10, -- In Seconds
        source = -1,
        type = "server",
        Ace = {
            ["admin"] = true
        },
        Jobs = {}
    },
    {
        name = "eventannounce",
        length = 10, -- In Seconds
        source = -1,
        type = "event",
        Ace = {
            ["admin"] = true
        },
        Jobs = {}
    },
    {
        name = "policeannounce",
        length = 10, -- In Seconds
        source = -1,
        type = "police",
        Ace = {},
        Jobs = {
            ["police"] = true
        }
    },
    {
        name = "medicannounce",
        length = 10, -- In Seconds
        source = "job",
        type = "medic",
        Ace = {},
        Jobs = {
            ["medic"] = true
        }
    },
    {
        name = "factionannounce",
        length = 10, -- In Seconds
        source = "job",
        type = "faction",
        Ace = {},
        Jobs = {
            ["lcn"] = true
        }
    }
}

ServerConfig.CustomCommands = {
    {
        name = "lsmdannounce",
        length = 10, -- In Seconds
        type = "lsmd",
        Ace = {},
        Jobs = {
            ["lcn"] = true
        },
        source = -1,
        event = "SService:SHUDV2:FactionsAnnounce"
    }
}

If you find any errors in the configuration and you can't fix them yourself, open a ticket!

Last updated