OrigenNetwork
Docs

Configuration · origen_races

All settings live in config.lua.


General

VariableDefaultDescription
Config.DebugfalseEnable debug logging to console
Config.Locales'en'UI language — 'en' | 'es'
Config.CustomHelpNotifyfalseSet to true to use a custom help notification via HelpNotify() in custom/client.lua
Config.CustomMessage'Press E to open the menu'Message shown when approaching the arcade machine
Config.AvoidQueryChargefalseSkip charging players when joining a race

Commands & Keys

VariableDefaultDescription
Config.AdminPanelCommand'raceadmin'Command to open the admin panel
Config.CommandInvitations'invitations'Command to open the race invitations menu
Config.KeyInvitations'F6'Keybind to open invitations
Config.KeyZoomMap'Z'Keybind to zoom the race map
Config.KeyMenuRace'ESCAPE'Keybind to open the in-race menu

Permissions

Groups allowed to use the admin panel. Validates via framework groups and FiveM Ace Permissions:

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

Nearby players

VariableDefaultDescription
Config.OnlyPlayerNearbyfalseShow only nearby players in the invite menu. If false, shows all players on the server
Config.OnlyPlayerNearbyDistance50.0Distance in meters to detect nearby players

Arcade access points

Define world coordinates where players can approach to open the arcade/race menu:

lua
Config.CustomCoords = {
    enable  = true,
    textKey = "Press [E] to open the arcade menu",
 
    coords = {
        vector3(209.76, -828.47, 30.74),
        vector3(196.28, -837.29, 30.92),
    },
 
    marker = {
        size  = {0.5, 0.5, 0.5},
        color = {255, 255, 255, 100},
        type  = 21,
    },
 
    blip = {
        enable  = false,
        sprite  = 280,
        color   = 1,
        scale   = 0.8,
        display = 4,
        text    = "Arcade",
    },
}

Vehicle settings

VariableDefaultDescription
Config.MaxVehs100Maximum number of vehicles shown in the vehicle selector
Config.BlacklistedVehs{}Vehicle model names that cannot be used in races

Vehicle classes

Defines which GTA vehicle classes are available in the race lobby:

lua
Config.VehsClass = {
    [0]  = "Compacts",
    [1]  = "Sedans",
    [4]  = "Muscle",
    [6]  = "Sports",
    [7]  = "Super",
    [8]  = "Motorbikes",
    [22] = "Formula",
    -- ...
}

Vehicle preview camera

Configures the camera position for the vehicle preview screen:

lua
Config.PreviewVehs = {
    Spawn     = vector4(-74.9068, -819.0542, 326.1751, 250.0),
    PedHidden = vector4(-75.1623, -818.9494, 332.9547, 139.5274),
    CamPos    = vector3(-66.3730, -818.9483, 330.1423),
    CamRot    = vector3(-20.0, 0.0, 90.0),
}

Weapons

Weapons given to players during races and their ammo count:

lua
Config.Weapons = {
    [GetHashKey("WEAPON_PISTOL")]    = 999,
    [GetHashKey("WEAPON_RPG")]       = 20,
    [GetHashKey("WEAPON_GRENADE")]   = 25,
    -- ...
}

Arcade zone

Polygon zone that defines the arcade lobby area on the map:

lua
Config.ArcadeVertex = {
    {
        {-1702.1328, -1081.4124},
        {-1665.9520, -1109.9304},
        {-1628.4718, -1065.4174},
        {-1655.5503, -1032.5206},
    }
}

Arcade props

List of prop models spawned inside the arcade area:

lua
Config.ArcadeProps = {
    'prop_arcade_01',
    'ch_prop_arcade_street_01b',
    'ch_prop_arcade_invade_01a',
    -- ...
}