GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  1. Product Docs
  2. GFX DUI Radio

Configuration

Check the instructions below.

3. Configuration

Edit sh_config.lua

  1. Notification Functionality:

    • If you have a custom notification system, uncomment and update the Notify function:

      Notify = function(message)
          -- Replace with your custom notification logic
      end
  2. Voice Script:

    • Set the voice script being used:

      voiceScript = "pma-voice" -- Default: "pma-voice"
  3. Default Radio Volume:

    • Adjust the default volume level (1-100):

      defaultVolume = 50
  4. Radio Prop Configuration:

    • Modify the radio prop's model, texture, animations, and offsets as required:

      prop = {
          model = "prop_cs_hand_radio",
          screen_texture = "script_rt",
          animDict = "cellphone@",
          animName = "cellphone_text_read_base",
          boneIndex = 57005,
          offsetX = 0.14,
          offsetY = 0.005,
          offsetZ = -0.02,
          rotX = 110.0,
          rotY = 105.0,
          rotZ = -15.0,
      }
  5. Button Functionality:

    • Adjust button labels and functionality if needed:

      • Example for the toggle button:

        buttons = {
            toggle = {
                offset = vector3(0.005, 0.005, 0.055),
                text = "Toggle Radio",
            },
        }
  6. Debugging:

    • Enable button position markers by setting debugButtons to true (useful for development):

      debugButtons = true

4. Key Features

  • Toggle Radio: Enable or disable the radio.

  • Volume Control: Increase or decrease radio volume in increments of 5.

  • Connect to Channel: Set the radio channel.

  • Disconnect: Leave the current radio channel.


5. Testing

  1. Verify Functionality:

    • Join the server and use the script's features to ensure everything works:

      • Equip the radio prop.

      • Test all buttons (toggle, volume up, volume down, connect, disconnect).

  2. Adjust Prop Placement:

    • If the radio prop is misaligned with the player, adjust the offsets in sh_config.lua:

      offsetX = 0.14,
      offsetY = 0.005,
      offsetZ = -0.02,
  3. Debug Mode:

    • Enable debugButtons and verify button positions:

      debugButtons = true

6. Notes

  • Ensure your pma-voice settings allow proper integration with the radio.

  • Update the notification system if needed to align with your server's setup.

For support, reach out to GFX Support. 🎉

PreviousInstallation

Last updated 4 months ago

🔉
⚙️