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

Zdarzenie

onClientConsole

KlientCzat i konsolaIdentyczne z MTA:SA

Gracz wpisał tekst w konsoli gry (F8).

Obsługa

addEventHandler("onClientConsole", root, function(theMessage) ... end)

Parametry

theMessagestring
Wpisany tekst.

Źródło

source to lokalny gracz.

Przykład

addEventHandler("onClientConsole", localPlayer, function(text)
    if text == "pomoc" then outputConsole("Komendy: /auto, /hp") end
end)

Zobacz też