Defines the Handheld Radio item, which lets its carrier use the radio and has a Frequency option that opens the frequency prompt on the client.

Summary

Methods

Opens the frequency prompt on the player's client with their current frequency when Frequency is chosen.
Lets the item be dropped; nothing else happens.

Methods

ITEM:OnCustomFunction(player, name)

server gamemodes/cwhl2rp/schema/items/sh_handheld_radio.lua:21

Opens the frequency prompt on the player's client with their current frequency when Frequency is chosen.

Parameters

  • player
  • name

ITEM:OnDrop(player, position)

shared gamemodes/cwhl2rp/schema/items/sh_handheld_radio.lua:17

Lets the item be dropped; nothing else happens.

Parameters

  • player
  • position

Defined in