# Config

#### Config :&#x20;

```lua
Config = {}
Config.lang  = "en"                     -- or "es", "ar", "fr" etc.
Config.Debug = true            -- Debug mode
Config.Framework = "ESX"             -- QBCORE / ESX / QBOX
Config.Inventory = 'ox_inventory'      -- qb-inventory // ox_inventory // codem-inventory // qs-inventory // ps-inventory // tgiann-inventory // core_inventory
Config.Clothing = 'rcore_clothing' -- qb-clothing // illenium-appearance // qs-appearance // fivem-appearance // bl-appearance// skinchanger // tgiann-clothing // rcore_clothing // custom
Config.CommandOpenList = "listoff"

Config.Interaction = "ox_target"        -- ox_target // qb-target  (you need to set collision to true if you use target)

Config.PedSettings = {
    collision = true,                                                    -- set true to enable the ped collision
    pedAlpha = 255,                                                      -- invisibility of the ped, 0 to 255
    RemoveCarryKey = 73,                                                 -- this for detach carry ped "X" key
    IsDead = false,                                                      -- true: Only create ped if the player is dead
    Ped_cleanup_time = 60,                                               -- minutes to delete the ped (Min is 15 minutes)
    Ped_Offline_text = "Offline",                                        -- text for the ped when player is offline or false to disable it
    Ped_Default_exit_anim_dict = "timetable@tracy@sleep@",        -- default exit animation
    Ped_Default_exit_anim_name = "idle_c",                                 -- default exit animation name
}

Config.ExitReasonSettings = {
    DefaultCreatePed = true, -- used when no keyword matches the disconnect reason
    ReasonList = {
        ['game crashed'] = {
            label = 'Head Popped',
            createPed = true
        },
        ['timed out'] = {
            label = 'Head Popped',
            createPed = true
        },
        ['exiting'] = {
            label = 'F8 Quit',
            createPed = true
        },
        ['you were kicked for being afk'] = {
            label = 'Kicked for AFK',
            createPed = true
        },
        ['banned'] = {
            label = 'Banned. Ggs. Get shit on.',
            createPed = false
        },
        ['exploit'] = {
            label = 'Exploiting',
            createPed = false
        },
        ['kicked'] = {
            label = 'Kicked',
            createPed = false
        },
        ['[txadmin]'] = {
            label = 'txAdmin Action',
            createPed = false
        },
    }
}

Config.PedInteractions = {
    PreviewPed = true,
    MovePed = true,               -- Move ped to the player position
    PutInTrunk = true,            -- Put ped in the trunk
    PutInVehicle = true,          -- Put ped in the vehicle
    DeletePed = true,             -- Delete ped (Only Admin)
    RobPed = true,                -- Rob ped
    AdminOpenInv = true,          -- Admin open inventory (Only Admin)
    ChangeAnimation = true,       -- Change animation
}

Config.RobSettings = {
    canRob = true,                 -- Enable or disable robbery globally
    InventoryMaxWeight = 120000,   -- must match your inventory config.lua
    InventoryMaxSlots = 50,        -- must match your inventory config.lua
    OFFLINE_TIME_REQUIRED = 0,     -- Time (minutes) a player must be offline before they can be robbed
    DISABLE_ROB_AFTER = false,     -- Time (minutes) to disable robbing after a certain time, or false to allow indefinitely
    TakeScreenshot = false,         -- Take a screenshot of the player being robbed
    RobbingTime = 5000,             -- Time (seconds) to rob a player
    RobbingAnimation = {
        dict = 'random@shop_robbery', -- animation dictionary
        anim = 'robbery_action_b', -- animation name
        flags = 16, -- animation flags (if you have esx this is not needed)
    },
}

Config.BaypassZonesEnabled = true -- Set false to disable restricted/bypass zones entirely

Config.BaypassZones = {
    {
        name = "mission row",
        points = {
            vec3(407.0, -1036.0, 29.0),
            vec3(407.0, -965.0, 29.0),
            vec3(485.0, -963.0, 29.0),
            vec3(492.0, -1026.0, 29.0),
        },
        thickness = 10.0,
        debugPoly = true
    },
    {
        name = "pillbox",
        points = {
            vec3(263.0, -615.0, 46.0),
            vec3(287.0, -547.0, 46.0),
            vec3(388.0, -562.0, 46.0),
            vec3(348.0, -650.0, 46.0),
        },
        thickness = 66.0,
        debugPoly = true
    },
    {
        name = "hotel",
        points = {
            vec3(-367.0, -973.0, 33.0),
            vec3(-364.0, -863.0, 33.0),
            vec3(-210.0, -905.0, 33.0),
            vec3(-248.0, -1014.0, 33.0),
        },
        thickness = 21.0,
        debugPoly = true
    }
}

Config.NoStealableItems = {        -- Items that cannot be stolen during robbery (not working for core_inventory)
    ['phone'] = true,
    ['radio'] = true,
    ['weapon_advancedrifle'] = true,
    
}

Config.HidedSlots = 5 -- the last 5 slots will be hidden in the inventory, players can secure their items in these slots (not working for core_inventory)

Config.Baypass = {                 --citizenid (QBCORE/QBOX) or identifier (ESX) to bypass ped creation
    --"SJC35440",
    --"YVH02258"   
}

Config.Permission = { 'god', 'admin', 'superadmin', 'mod' } -- Permission to [delete ped]


-----------------------------------
-- discord webhook config in open/sv_open.lua
-----------------------------------



```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://errorscripts.gitbook.io/errorscript/products/404-offlineplayersv2/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
