# Configuration

***

<mark style="color:$success;">Config.lua</mark>

```lua
STG = {}

-- Language setting (file name in locales/ folder, e.g. 'en', 'tr', 'de')
STG.Locale = 'en' -- en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi, no

-- Enable/disable pointing animation on hover
STG.EnablePointing = true

-- Reset ped rotation to default when pointing starts
STG.ResetRotationOnPoint = true

-- Enable/disable map holding animation when pause menu opens
STG.EnableMapAnimation = true

-- Hide/show external HUD when pause menu opens/closes
STG.HideHud = function()
    if GetResourceState('stg-hud') == 'started' then
        exports['stg-hud']:hideHud()
    else
        -- Your custom code to hide the default HUD, e.g.:
    end
end

STG.ShowHud = function()
    if GetResourceState('stg-hud') == 'started' then
        exports['stg-hud']:showHud()
    else
        -- Your custom code to show the default HUD, e.g.:
    end
end

-- Cooldown in seconds for ticket spam protection
STG.TicketCooldown = 60

-- Ticket categories shown in the dropdown
STG.TicketCategories = {
    "Bug Report",
    "Player Report",
    "Suggestion",
    "Other",
}

-- Permission groups that can use /tickets command
STG.AdminPermissions = { "admin", "superadmin" }

-- Social media links (add, remove or reorder as you wish)
-- icon: image file name in web/images/ folder
-- url: link to open when clicked
STG.Links = {
    {
        icon = "icon-media-discord.svg",
        url  = "https://discord.gg/stg",
    },
    {
        icon = "icon-media-tiktok.svg",
        url  = "https://tiktok.com/@stg",
    },
    {
        icon = "icon-media-insta.svg",
        url  = "https://instagram.com/stgscripts",
    },
    {
        icon = "icon-media-x.svg",
        url  = "https://x.com/",
    },
    {
        icon = "icon-media-world.svg",
        url  = "https://stgscripts.com",
    },
}

STG.Announcements = {
    {
        date  = '2026.03.27',
        title = 'WELCOME TO THE SERVER',
        text  = 'Welcome to STG Roleplay! We are glad to have you here. Please make sure to read the rules before starting your journey. Respect other players and have fun!',
    },
    {
        date  = '2026.03.25',
        title = 'NEW VEHICLE UPDATE',
        text  = 'Over 30 new vehicles have been added to the server including sports cars, motorcycles, and trucks. Visit the premium dealership to check them out. Prices have been adjusted for the economy balance.',
    },
    {
        date  = '2026.03.23',
        title = 'POLICE DEPARTMENT RECRUITMENT',
        text  = 'The Los Santos Police Department is now hiring! We are looking for dedicated officers to join the force. Apply through our Discord server in the applications channel. Requirements: minimum 50 hours playtime, clean record, and a completed training program.',
    },
    {
        date  = '2026.03.21',
        title = 'ECONOMY CHANGES',
        text  = 'Major economy rebalancing has been applied. Job payouts have been adjusted, property prices updated, and a new tax system has been implemented. Check the detailed changelog on our Discord for full information.',
    },
    {
        date  = '2026.03.19',
        title = 'HOUSING SYSTEM V2',
        text  = 'The new housing system is now live! You can now customize your interiors, invite roommates, set up storage, and even install security systems. Visit any real estate office to browse available properties.',
    },
    {
        date  = '2026.03.17',
        title = 'PAUSE MENU UPDATE',
        text  = 'Pause menu has been completely redesigned with a new ticket system, better performance, and improved visuals. Report bugs through the in-game ticket system.',
    },
}

```
