PT-BR/GetRadioChannel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 26: Line 26:
{{PT-BR/Funcoes_audio_client}}
{{PT-BR/Funcoes_audio_client}}


[[EN:GetRadioChannel]]
[[ar:getRadioChannel]]
[[HU:GetRadioChannel]]
[[de:getRadioChannel]]
[[AR:getRadioChannel]]
[[hu:getRadioChannel]]
[[RU:GetRadioChannel]]
[[pl:getRadioChannel]]
[[DE:getRadioChannel]]
[[ro:getRadioChannel]]
[[PL:GetRadioChannel]]
[[ru:GetRadioChannel]]
[[RO:GetRadioChannel]]
[[en:GetRadioChannel]]

Latest revision as of 15:13, 11 June 2023

Essa função é usada para retornar o ID da estação de rádio atual.

Sintaxe

int getRadioChannel ( )

Retorno

Retorna o ID da estação de rádio.

  • 0: Radio Off
  • 1: Playback FM
  • 2: K-Rose
  • 3: K-DST
  • 4: Bounce FM
  • 5: SF-UR
  • 6: Radio Los Santos
  • 7: Radio X
  • 8: CSR 103.9
  • 9: K-Jah West
  • 10: Master Sounds 98.3
  • 11: WCTR
  • 12: User Track Player

Exemplo

Este exemplo exibe no chat o nome da estação de rádio atual.

addCommandHandler ( "estacao",
    function ()
        outputChatBox ( "Você está ouvindo a " .. getRadioChannelName ( getRadioChannel() ) .. "!" )
    end
)

Veja também