Skip to content

Settings ​

tm_music has no config file. Every option is a setting with its default in code, saved in the database and edited in game: open the admin panel with /tmadmin and choose Music. Changes apply at once unless a setting says it needs a restart. Only players with the tm_lib admin permission can edit them.

Settings marked server are never sent to players.

General ​

SettingDefaultDescription
CommandmusicA short chat command for the player, next to /tm:music which always exists. Empty for none. Needs a restart.
Vehicle radio commandcarradioA short chat command for the vehicle radio, next to /tm:carradio. Empty for none. Needs a restart.
Default volume50Volume a new booth, speaker or player starts at.

Speakers ​

SettingDefaultDescription
Phone speaker range5How far, in meters, music from a phone speaker carries.
Connect range25How close a player must be to connect a device to booth speakers.
Booth speaker range25How far a booth speaker carries. Applies to booths created afterward.
Linked speakers4How many extra speakers one device can link to its connection.
Take over request time30Seconds a request for control waits for an answer.
Control point radius1.2Size of the spot a player uses to open a booth.

Vehicle radios ​

SettingDefaultDescription
Vehicle radiosEvery vehicleOff, installed by other scripts, or every vehicle.
Vehicle radio range8How far a vehicle radio carries outside the car.
Vehicle connect range12How close a player must be to a vehicle to use its radio.

Station radio ​

SettingDefaultDescription
StationsemptyOne station per line as `Name

Searching runs on the server so the key never reaches a player. Create a YouTube Data API v3 key in Google Cloud and set it in a private config file:

cfg
set tm_music_youtube_api_key "your key"

The official API costs 100 quota units per search against a default 10,000 a day, about 100 uncached searches. Identical searches are cached and each player is limited. With no key the Invidious instances below are tried instead. Those are public and can be slow or down, so use a key on a live server. Only embeddable videos are returned.

SettingDefaultDescription
SearchonLets players search from the player.
Results per search12How many videos a search returns.
Music category onlyonLimits official API results to the Music category.
Cache time360Minutes an identical search is answered from memory.
Search cooldown2Seconds a player waits between searches.
Searches per hour40Uncached searches per player per hour, so one player cannot drain the quota.
Invidious instances (server)three public onesOne address per line, tried in order when no key is set.

Phone app ​

SettingDefaultDescription
PhoneDetect automaticallyWhich phone gets the app: lb-phone, NPWD, a custom adapter or none. Needs a restart.
App nameMusicName under the app icon. Needs a restart.