SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje klienta
  3. getSoundEffects

Funkcja

getSoundEffects

KlientDźwięk (klient)Identyczna z MTA:SA

Zwraca tabelę wszystkich efektów dźwięku: nazwa efektu → true/false.

Składnia

table getSoundEffects(sound theSound)

Argumenty

theSoundsound
Dźwięk.

Zwraca

Tabela efektów albo false.

Przykład

local music = playSound("audio/radio.mp3", true)
for name, on in pairs(getSoundEffects(music)) do
    if on then outputChatBox(name) end
end

Zobacz też