⚙️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. 🎉

Last updated