ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPlayerRadioEnabled

Function

isPlayerRadioEnabled

ServerPlayersTrilogy Hub only

Checks whether the player has the game's in-vehicle radio on.

Syntax

bool isPlayerRadioEnabled(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

true if on.

Example

outputServerLog(tostring(isPlayerRadioEnabled(player)))

See also