PL/GetRadioChannel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{PL/Client function}} Ta funkcja pobiera identyfikator aktualnie aktywnego kanału radiowego. ==Składnia== <syntaxhighlight lang="lua"> int getRadioChannel ( )...")
 
mNo edit summary
 
(3 intermediate revisions by one other user not shown)
Line 5: Line 5:
==Składnia==  
==Składnia==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int getRadioChannel ( )            
int getRadioChannel ( )
</syntaxhighlight>  
</syntaxhighlight>  


Line 14: Line 14:
==Przykład==
==Przykład==
Ten przykład wyświetla na czacie nazwę stacji radiowej za pomocą identyfikatora.
Ten przykład wyświetla na czacie nazwę stacji radiowej za pomocą identyfikatora.
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addCommandHandler('getradio',
addCommandHandler('getradio',
function()
function()
outputChatBox('Aktualnie słuchana nazwa stacji: '.. getRadioChannelName(getRadioChannel()) ..'.')
outputChatBox('Nazwa aktualnej stacji: '.. getRadioChannelName(getRadioChannel()) ..'.')
end
end
)
)
</syntaxhighlight>
</syntaxhighlight>
</section>


==Zobacz również==
==Zobacz również==


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

Latest revision as of 16:48, 15 August 2021

Ta funkcja pobiera identyfikator aktualnie aktywnego kanału radiowego.

Składnia

int getRadioChannel ( )

Wynik

Zwraca identyfikator kanału radiowego.

  • 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

Przykład

Ten przykład wyświetla na czacie nazwę stacji radiowej za pomocą identyfikatora.

Click to collapse [-]
Client
addCommandHandler('getradio',
	function()
		outputChatBox('Nazwa aktualnej stacji: '.. getRadioChannelName(getRadioChannel()) ..'.')
	end
)

Zobacz również

Shared