PT-BR/GetRadioChannel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{BR/Funcao cliente}} Essa função é usada para retornar o ID da estação de rádio atual. ==Sintaxe== <syntaxhighlight lang="lua"> int getRadioChannel ( ) </s...")
 
mNo edit summary
Line 25: Line 25:


{{Client_audio_functions}}
{{Client_audio_functions}}
[[EN:GetRadioChannel]]
[[HU:GetRadioChannel]]
[[HU:GetRadioChannel]]
[[AR:getRadioChannel]]
[[AR:getRadioChannel]]
Line 30: Line 31:
[[PL:GetRadioChannel]]
[[PL:GetRadioChannel]]
[[RO:GetRadioChannel]]
[[RO:GetRadioChannel]]
[[EN:GetRadioChannel]]
[[PT-BR:GetRadioChannel]]

Revision as of 16:48, 15 August 2021

Template:BR/Funcao cliente 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

Shared