Biyei Scripts

Events

biyei_radio:powerChangedclient

Fires when the radio is turned on or off.

ParamTypeDescription
onboolean
biyei_radio:frequencyChangedclient

Fires when the player joins or leaves a frequency.

ParamTypeDescription
freqnumber|nil
biyei_radio:transmittingclient

Fires when PTT is pressed or released.

ParamTypeDescription
talkingboolean
Lua
AddEventHandler('biyei_radio:transmitting', function(talking)
    -- e.g. show a "talking on radio" icon on the HUD
end)
biyei_radio:membersChangedclient

Fires whenever the member list of the current frequency changes.

ParamTypeDescription
memberstable
biyei_radio:useItemclient

Triggered from another resource (e.g. an inventory's item "event" option) to open the radio menu, as an alternative to the openRadio export.