SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje wspólne
  3. getFunctionsBoundToKey

Funkcja

getFunctionsBoundToKey

Zwraca funkcje (i nazwy komend) podpięte pod klawisz.

Składnia

Serwer

table getFunctionsBoundToKey(player thePlayer, string key)

Klient

table getFunctionsBoundToKey(string key)

Argumenty

thePlayerplayer
Gracz (tylko serwer).
keystring
Klawisz.

Różnice względem MTA:SA

  • Tych argumentów z MTA:SA tu nie ma: string keyState

W MTA:SA

getFunctionsBoundToKey(player thePlayer, string key, string keyState)

Zwraca

Tablica funkcji.

Przykład

outputChatBox("Pod F2: " .. #getFunctionsBoundToKey("F2") .. " funkcji")

Zobacz też