OrigenNetwork
Docs

Configuration · origen_doorlock

All settings live in config/config.lua.


General

VariableDefaultDescription
Config.Language'en'UI language — 'en' | 'es'
Config.DebugfalseEnable debug logging to console
Config.Commands'doors'Chat command to open the door management menu
Config.Drawtext'qb-core'Draw text library — 'qb-core' | 'esx_textui' | 'ox_lib' | 'custom'
Config.Input'ox_lib'Input dialog system — 'ox_lib' | 'qb-input'

Permissions

Groups allowed to use the door management commands. Uses both framework groups and FiveM Ace Permissions:

lua
Config.GroupPermissions = {
    'god',
    'admin',
    'superadmin',
}

Discord logs

Set your webhook URLs for each event. Leave the default value 'YOUR_DISCORD_WEBHOOK' to disable a log:

lua
Config.Logs = {
    CreateDoor = 'YOUR_DISCORD_WEBHOOK',  -- fired when a door is created
    DeleteDoor = 'YOUR_DISCORD_WEBHOOK',  -- fired when a door is deleted
    DoorsUsage = 'YOUR_DISCORD_WEBHOOK',  -- fired when a door is locked/unlocked
}

Custom core object

If you are using a framework not natively supported, return your core object here:

lua
Config.GetCustomCoreObject = function()
    return nil -- return exports['your-core']:GetCoreObject()
end