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

Zdarzenie

onPlayerContact

SerwerGraczeIdentyczne z MTA:SA

Zmienił się element pod stopami gracza (pojazd albo obiekt, na którym stoi).

Obsługa

addEventHandler("onPlayerContact", root, function(previous, current) ... end)

Parametry

previouselement
Poprzedni element albo false.
currentelement
Obecny element albo false.

Źródło

source to gracz.

Przykład

addEventHandler("onPlayerContact", root, function(_, current)
    if current and getElementType(current) == "vehicle" then
        outputChatBox("Stoisz na pojeździe.", source)
    end
end)

Zobacz też