OrigenNetwork
Docs

Configuration · origen_radio

All configuration lives in config/main.lua. The file is split into two tables: Config (general settings) and RadioConfig (radio behaviour and animations).


General settings

KeyTypeDefaultDescription
Config.Frameworkstringauto-detectedActive framework. Auto-detected from running resources: "qbcore", "esx", or "none"
Config.Inventorystring"origen_inventory"Inventory resource to use for item checks. See Dependencies for valid values
Config.PermissionsGroupstable{ "mod" }List of job/group names that have full admin permissions over the radio system
Config.DebugbooleantrueEnables debug print output in the server console
Config.Languagestring"es"UI language. Accepted values: "en", "es", or any custom locale key added to locales.lua
Config.MetadataSystembooleanfalseEnable the custom metadata system (origen_metadata table). If false, metadata is read from the framework player object
Config.CustomReviveEventstring""Client event name to listen to for player revive. When triggered, the radio is automatically re-enabled. Leave empty to disable
Config.BindSystembooleanfalseEnable the keybind system that allows players to bind custom keys to radio actions
Config.KeepInputOnNUIbooleanfalseIf true, the player can move while the radio NUI is open
Config.HideWeaponOnTalkbooleantrueIf true, the player's weapon is hidden while transmitting on the radio
Config.NeedRadioItembooleantrueIf true, the player must have a radio item in their inventory to open the radio interface
Config.RadioItemstable{ "radio" }List of item names that open the radio interface when used

RadioConfig

Default keybinds

KeyDefaultDescription
RadioConfig.DefaultKey"LMENU"Key held to transmit on the active frequency
RadioConfig.DefaultBroadcastKey"COMMA"Key held to broadcast across all frequencies simultaneously
RadioConfig.DefaultOpenRadioKey"Z"Key to open and close the radio NUI

Animations

RadioConfig.Anims is a list of animation presets the player can choose for the talking animation. Each entry can define a dictionary + clip only (no prop), or include a prop attachment.

lua
RadioConfig.Anims = {
    -- Simple animation, no prop
    { Dict = "random@arrests", Anim = "generic_radio_chatter" },
 
    -- Animation with hand-held prop
    {
        Dict = "cellphone@str",
        Anim = "cellphone_call_listen_a",
        Prop = "prop_cs_hand_radio",
        PropBone = 57005,
        PropPlacement = { 0.12, 0.02, -0.02, 20.0, 70.0, 130.0 },
    },
 
    -- Alternative animation with prop
    {
        Dict = "anim@male@holding_radio",
        Anim = "holding_radio_clip",
        Prop = "prop_cs_hand_radio",
        PropBone = 28422,
        PropPlacement = { 0.0750, 0.0230, -0.0230, -90.0000, 0.0, -59.9999 },
    },
}
FieldTypeDescription
DictstringAnimation dictionary
AnimstringAnimation clip name
Propstring(Optional) Prop model to attach during the animation
PropBonenumber(Optional) Bone index to attach the prop to
PropPlacementtable(Optional) Prop offset and rotation: { x, y, z, rx, ry, rz }

Players can switch between animation presets in-game. Their choice is persisted via the metadata system.