TGIANN
YoutubeDiscordTebexFivem
  • Main
    • Welcome
    • How to Find My Transaction ID
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
    • Switching from MySQL Async to oxmysql
    • Basic Aces & Principals overview/guide
    • Using QB scripts in QBOX
    • How can i use Fivemanage
  • Common errors
    • SCRIPT ERROR: ?:-1: attempt to call a nil value
    • TGIANN-Core script is not in my keymaster account
    • You lack the required entitlement to use tgiann-*
    • Error parsing script / Failed to load script
    • Error: syntax error near '<\1>'
    • When I buy something, the money goes negative
    • Failed to verify protected resource
  • Sounds in the script are not working
  • Crashes related to clothing
  • Map
    • lumi-delperropier
      • Setup
      • Conflicts
      • Disable NPC
      • Rcore Funfair Cords
      • CS-Hall Config
  • Scripts
    • tgiann-animpos-photo-cam
      • Editable Files
      • Config File
      • Exports
    • tgiann-self-storage-v2
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Config File
    • tgiann-radio
      • Guides
        • Recommended settings for PMA Voice
        • How to change the animation
      • Installation
      • Config file
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Exports
    • tgiann-core
      • Config file
      • Exports
      • Integration
        • QB
          • DrawText
    • tgiann-lumihud
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • playerStatus.lua
          • qbclient.lua
          • editable.lua
          • moneyEditable.lua
          • harnessBeltEditable.lua
        • Server
          • qbserver.lua
          • editable.lua
      • Config Files
        • config.lua
        • configHudSettings
        • configWeaponList.lua
        • qbStressConfig
      • Integration
        • Notify
        • Progressbar
    • tgiann-realparking
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
      • Config Files
        • blipsConfig.lua
        • config.lua
        • impoundConfig.lua
        • insuranceConfig.lua
    • tgiann-vehicleshop
      • Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
          • commands.lua
      • Config Files
    • tgiann-gps
      • Client Exports
      • Editable Files
        • config.lua
        • client/editable.lua
        • Language File
    • tgiann-clothing
      • Guides
        • Installation
          • ESX
          • QB
          • QBX
          • tgiann-inventory clothe items
        • Migration
        • How to take clothes images
      • Comman Proplems
      • Events / Exports
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • server/editable.lua
      • Configs
        • blacklist
          • famale.lua
          • male.lua
        • clotheList
          • global
            • female.lua
            • male.lua
        • clothingPrice
          • female.lua
          • male.lua
        • tattoo
          • customTattoo.lua
          • tattoo.lua
        • clothingRoomsOutfits.lua
        • config.lua
        • hairOverlays.lua
        • pedList.lua
    • tgiann-inventory
      • Guides
        • Installation
          • ESX
          • QB
          • QBOX
        • How to adapt your script
        • How do money as item
          • QB
          • QBOX
          • ESX
            • ESX V11
            • ESX V12
        • Creating Items
        • Item İmages
        • Item Metadata
        • Migration
      • Common Problems
      • Exports
        • Server
        • Client
      • Hooks
      • Events
        • Server
        • Client
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • client/topheader.lua
        • server/editable.lua
        • server/commands.lua
        • server/convert.lua
      • Configs
        • config.lua
        • configAmmo.lua
        • configAntiSwimingItems
        • configAttachment.lua
        • configAttachmentName.lua
        • configBlockItems.lua
        • configCarryItems.lua
        • configClotheBackpack.lua
        • configCommands.lua
        • configCraft.lua
        • configDecayableItems.lua
        • configDrop.lua
        • configEditableItems.lua
        • configFilter.lua
        • configItemStash.lua
        • configMaxStack.lua
        • configMaxUseAmount.lua
        • configMetadata.lua
        • configMetadataAdvance.js
        • configRealisticArmor.lua
        • configShop.lua
        • configStashes.lua
        • configThrowableItems.lua
        • configVendingMachine.lua
        • configWeapon.lua
    • lumi-delperropier-texonstone
      • Setup
    • tgiann-antirpf
      • Editable files
    • tgiann-secondhand
      • Editable files
      • config.lua
    • tgiann-multicharacter + spawn selector
      • Guides
        • Installation
        • Discord Permmission integration
        • Tebex integration
      • Common Problems
      • Configs
        • config.lua
        • multicharConfig.lua
        • photocamConfig.lua
        • spawnSelectorConfig.lua
      • Editable Files
        • Language File
        • client/editable.lua
        • server/editable.lua
        • server/commands.lua
    • tgiann-attachment
      • Config file
      • Event List
    • tgiann-bank
      • Migration
      • Exports
      • Config files
        • config.lua
        • configGangAccounts.lua
        • configHacking.lua
        • configJob.lua
        • configJobAccounts.lua
      • Editable Files
    • tgiann-bettercombat
      • Config file
      • Event List
    • tgiann-bobcat
      • Config file
    • tgiann-boombox
      • Config file
    • tgiann-vehiclecontrol
      • Exports
      • Config file
      • Editable Files
    • tgiann-card
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-carhud
      • Config file
    • tgiann-carmod
      • Config file
      • Sql File
    • tgiann-chair
      • Config file
      • QB Core Item
    • tgiann-chopshop
      • Config file
      • QB Core Item
    • tgiann-damage-indicator
      • Config file
      • Editable files
    • tgiann-dna
      • Sql File
    • tgiann-document
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-doorlock-v2
      • How can i find door model and other details
      • Config file
    • tgiann-dropweaponwhendie
      • Config file
    • tgiann-drugsell
      • Config file
    • tgiann-erpv2
      • Config file
    • tgiann-fallouthacker
      • Usage
    • tgiann-garage
      • Config file
      • Event List
      • Exports List
      • QB Sql File
      • ESX Sql File
    • tgiann-hotwire
      • Item List
      • Editable Files
        • Language File
        • Client/editable.lua
        • Client/migrate.lua
        • Server/commands.lua
      • Config file
      • Exports
    • tgiann-house
      • Stash Function
      • Common errors
      • Config file
      • Event List
      • Sql File
      • Editable Files
    • tgiann-hud
      • Config file
    • tgiann-hudv2
      • Config file
      • Event List
    • tgiann-job
      • Config file
      • Sql File
    • tgiann-market
      • Editable Files
      • Config file
      • Sql File
    • tgiann-mdt
      • Config file
      • ESX Sql File
      • QB Sql File
    • tgiann-megaphone
      • Setup
        • QB Core Item
        • Ox Inventory Item
      • Language File
      • Config file
      • Event List
      • Exports List
      • Recommended PMA Voice Settings
      • Common Problems
    • tgiann-moder-hud
      • Config file
      • Editable files
      • Event list
    • tgiann-naked
      • Config file
      • Editable Files
      • Sql File
      • Wrong Clothes
    • tgiann-platechanger
      • Config file
    • tgiann-policealert
      • Config file
      • Event List
    • tgiann-postcard
      • Editable Files
      • Config file
      • QB Core Item
      • Ox Inventory Item
    • tgiann-radio (Old)
      • Common errors
      • Config file
      • Event List
      • Exports List
      • Recommended settings for PMA Voice
    • tgiann-rentscooter
      • Config file
    • tgiann-sblauncher
      • Config file
      • QB Core Item
    • tgiann-self-storage
      • Config file
      • Editable files
      • Sql File
    • tgiann-exit-log
      • Config file
      • Editable files
    • tgiann-weapons-on-back
      • Config file
      • Editable files
    • tgiann-sellnpc
      • Config file
    • tgiann-smokegrenade
      • Config file
    • tgiann-sounds
      • Example Usage
    • tgiann-stashhouse
      • Config file
      • Sql File
    • tgiann-statushud
    • tgiann-vehicleoutfit
      • Config file
      • Sql File
    • tgiann-vehicleradio
      • Config file
      • Event list
    • tgiann-vehicleshop
      • Config file
      • Sql File
    • tgiann-trade
      • Config file
      • Server editable.lua
      • Client editable.lua
    • tgiann-zombie
      • Config file
      • Client editable.lua
      • Server editable.lua
      • Common errors
    • tgiann-planting
      • Config file
      • Editable Files
    • tgiann-realistic-car-crash
      • Config file
      • Editable Files
    • tgiann-graphic-menu
      • Config file
      • Editable Files
    • tgiann-firefighterjob
      • Installation
      • Config file
      • Editable Files
    • tgiann-coinshop
      • Config file
      • Editable Files
    • tgiann-vehiclepaint
      • Config file
      • Setup
    • tgiann-drone
      • Config file
      • Editable Files
    • tgiann-musical-chairs
      • Config file
      • Editable Files
    • tgiann-pursuitmode
      • Config file
      • Editable Files
    • tgiann-food-jobs
      • Config file
      • Editable Files
      • Example Location Config
Powered by GitBook
On this page
  1. Scripts
  2. tgiann-radio

Config file

--[[
    - this script needs tgiann-core script to work, you can download the script from your keymaster account
      Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
      Adjust the tgiann-core config file according to the framework you are using

    ⚠️ Recommended settings for PMA Voice : https://docs.tgiann.com/scripts/tgiann-radio/recommended-settings-for-pma-voice ⚠️
    ❗ If you experience any issues with sounds, use the recommended version and PMA settings.❗

    ⚠️⚠️⚠️ Installation : https://docs.tgiann.com/scripts/tgiann-radio/installation ⚠️⚠️⚠️
]]

tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()

config.lang = "en"              -- Language settings

config.showAvailableFreq = true -- When this setting is true, the frequencies that other players are connected to will be shown on the main page.
config.showPlayerAmount = true  -- When this setting is true, the number of connected players will be displayed on the main page and in the radio (channels with a password will show a dash). If false, the player count will not be displayed
config.passwordEnable = true    -- Players can set passwords on channels when true
config.canOpenWhenArmed = false -- When set to true, the player can use the radio item while holding a weapon

config.volumeOutput = {         -- The intensity of the sound level of the radio speakers relative to the left and right
    left = 1.0,                 -- max 1.0, min 0.0
    right = 1.0                 -- max 1.0, min 0.0
}

config.key = {
    active = true, -- Open on the radio menu when the key is pressed when true (When config.items.active is true, it also controls the item when the key is pressed)
    key = "F9"
}

config.items = {
    active = true, -- When true, the item system is activated
    items = {
        radio = {  -- Item Name
            -- Job names | Table or nil | jobs = { ["police"] = true, ["ambulance"] = true }, | jobs = { ["police"] = { 2, 3, 5 }, "ambulance" }, -- Example with grade
            jobs = {},
            -- Discord perm id | Table or nil | discord = { "1294775830572040282", "3244275130272040282" }
            discord = {},
            -- Ace perm name | Table or nil | acePerms = { "admin", "god" } -- https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917
            acePerms = {},
            -- Default Channel List | Table |  defaultChannels = { "PD1", "PD2", "EMS5" }
            defaultChannels = {},
        },
        pd_radio = {
            jobs = { ["police"] = true },
            defaultChannels = {
                "PD1", "PD2", "PD3", "PD4", "PD5", "EMS5"
            }
        },
        ems_radio = {
            jobs = { ["ambulance"] = { 2, 3, 5 }, ["ambulance2"] = true }, -- Example with grade
            defaultChannels = {
                "EMS1", "EMS2", "EMS3", "EMS4", "EMS5", "PD5"
            }
        }
    }
}

config.restrictChannel = {
    active = true, -- if true, restrict channels will be active
    channels = {
        -- Values are the same as in item config (jobs, acePerms, discord).
        -- Values like [1], [2], [3] are the number of the frequency. (When you connect to frequencies like 1.21, 1.43, 1.52, the config value for [1] is checked.)
        -- disablePlayerAmount: true does not show the number of players connected to the channel
        [1] = { acePerms = { "group.police" }, disablePlayerAmount = true },
        [2] = { jobs = { ["police"] = { 3, 4, 5 }, ["leo"] = true, }, acePerms = { "group.ambulance" }, disablePlayerAmount = true },
        [3] = { jobs = { ["police"] = true, ["ambulance"] = true }, acePerms = { "group.police", "group.ambulance" }, disablePlayerAmount = true },
        [4] = { discord = { '6408948030806425710', '240864823081642572' }, disablePlayerAmount = true },
        [5] = { jobs = { ["police"] = true, ["ambulance"] = true }, disablePlayerAmount = true },
        ["pd-0"] = { jobs = { ["police"] = true, ["ambulance"] = true }, disablePlayerAmount = true },
    }
}

-- you can use the animations you added to the animation list in config.animations
config.animationList = {
    ui = {
        anim = {
            dict = "cellphone@",
            name = "cellphone_text_read_base",
            blendInSpeed = 1.0,
            blendOutSpeed = 1.0,
            startPhase = 0.0
        },
        prop = {
            active = true, -- When true, the walkie talkie prop will be active
            hash = `prop_cs_hand_radio`,
            bone = 57005,
            placement = { 0.14, 0.01, -0.02, 110.0, 120.0, -15.0 },
        }
    },
    talkNormal = {
        anim = {
            dict = "random@arrests",
            name = "generic_radio_enter",
            blendInSpeed = 3.0,
            blendOutSpeed = 3.0,
            startPhase = 1.0
        },
    },
    talkWithProp = {
        anim = {
            dict = "anim@radio_pose_3",
            name = "radio_holding_gun",
        },
        prop = {
            active = true, -- When true, the walkie talkie prop will be active
            hash = `prop_cs_hand_radio`,
            bone = 60309,
            placement = { 0.0750, 0.0470, 0.0110, -97.9442, 3.7058, -23.2367 },
        }
    }
}

config.animations = {
    openUi = { -- When the radio menu is opened, the animation that will be played on the player
        anim = config.animationList.ui.anim,
        prop = config.animationList.ui.prop
    },
    talk = {
        active = true, -- When true, the talk animation will be active
        anim = config.animationList.talkNormal.anim,
        prop = config.animationList.talkNormal.prop
    },
    talkClothe = {
        active = false, -- When true, the talk animation changes according to the your clothe (config.animation.talk is played if the player's clothes do not match config)
        clothes = {
            {
                drawable = 9,         -- https://docs.fivem.net/natives/?_0x67F3780DD425D4FC (drawable list)
                male = { 1, 2, 4 },   -- male variations id (clothe number)
                female = { 1, 2, 4 }, -- female variations id (clothe number)
                anim = config.animationList.talkWithProp.anim,
                prop = config.animationList.talkWithProp.prop
            },
            {
                drawable = 9,
                male = { 5, 6, 7 },   -- male variations id (clothe number)
                female = { 5, 6, 7 }, -- female variations id (clothe number)
                anim = config.animationList.ui.anim,
                prop = config.animationList.ui.prop
            },
        }
    }
}

config.micClickState = true -- If true, all players will have mic click sound on by default
config.micClickCommand = {
    active = true,          -- Activate command to turn micclick sound off and on
    name = "micclick"       -- Command name
}

config.commands = {
    join = {
        active = true,
        command = "r",            -- Command Name
        desc = "commandJoinDesc", -- U can change from lang file
        args = { { name = "frequency", help = "frequency" } }
    },
    leave = {
        active = true,
        command = "rl",           -- Command Name
        desc = "commandLeaveDesc" -- U can change from lang file
    },
    adminJoin = {
        active = true,
        command = "radmin",            -- Command Name
        desc = "commandAdminJoinDesc", -- U can change from lang file
        args = { { name = "frequency", help = "frequency" } },
        perms = config.tgiannServer and { "tgi" } or config.framework == "qb" and "god" or "admin"
    },
    adminRadioList = {
        active = true,
        command = "rlistadmin",             -- Command Name
        desc = "commandAdminRadioListDesc", -- U can change from lang file
        perms = config.tgiannServer and { "tgi" } or config.framework == "qb" and "god" or "admin"
    }
}

config.tgiannGps = GetResourceState("tgiann-gps") ~= "missing" -- If you are using tgiann-gps, this setting should be true
config.defaultVolume = 50                                      -- Default talking sound
config.leaveRadioWhenDie = true                                -- When true, automatically disconnects from all radios when the player dies
config.playerHudDefaultLocation = { x = "15vh", y = "2vh" }
config.uiPlayerColorList = { "#CC4545", "#9D5329", "#CCAE45", "#80CC45", "#2C8158", "#49AD95", "#457BCC", "#7845CC", "#9145CC", "#CC45BE", "#CC4565", "#6A1414", "#E8E8E8", }

config.langs = {}
PreviousInstallationNextEditable Files

Last updated 3 months ago