RM-ScriptsRM-SCRIPTS
RM Radio Voice

Configuration

Channels, jobs, shadow module, and voice defaults for rm-radio-voice.

Configuration

config/shared.lua

OptionDescription
earpieceItemInventory item that makes radio private (no speaker leak to nearby players)
shadowItemItem placed inside a radio's storage that hides that radio's holder from channel member lists
shadowAutoJobsJobs that are radio-invisible by default without needing shadowItem (e.g. police, ambulance). Set to false so everyone, including these jobs, must carry the item
radioStashPer-radio storage stash: slots, weight
whitelistSubChannelsfalse restricts all decimals of a restricted channel; true requires listing each subchannel individually
restrictedChannelstable<channel, table<jobName, true>> — channels only the listed jobs may join

config/client.lua

OptionDescription
maxFrequencyHighest selectable channel frequency
leaveOnDeathTurn the radio off when the player dies
decimalPlacesSubchannel decimal precision
defaultMicClicksMic click sound on by default
overhearRangeDistance nearby players can overhear radio traffic leaking from a speaker (no earpiece)
overhearVolumeVolume (0.0–1.0) of overheard radio, lower than normal so it reads as a speaker

Shadow / Anonymous mode

Players eligible for shadow mode (a shadowAutoJobs job, or shadowItem in their radio's storage) get an Anonymous toggle in the radio Settings tab, letting them opt in or out of being hidden from other members' channel lists. Ineligible players see the toggle disabled with a hint pointing at the required item.

ox_lib usage

  • lib.callback — joining/leaving channels, favorites, and shadow-eligibility sync between client and server
  • cache — player job/ped/vehicle lookups gating radio use and overhear range checks