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

Funkcja

getElementRotation

Zwraca obrót elementu w stopniach.

Składnia

float getElementRotation(element theElement)

Argumenty

theElementelement
Element.

Różnice względem MTA:SA

  • Tych argumentów z MTA:SA tu nie ma: string rotOrder = "default"

W MTA:SA

getElementRotation(element theElement, string rotOrder = "default")

Zwraca

rx, ry, rz albo false.

Przykład

local _, _, rz = getElementRotation(player)
outputChatBox(("Patrzysz na %.0f°"):format(rz), player)

Zobacz też