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

Funkcja

getVehicleComponentPosition

Zwraca przesunięcie części zapisane przez setVehicleComponentPosition (0, 0, 0, gdy nie ustawiono).

Składnia

float, float, float getVehicleComponentPosition(vehicle vehicle, string component)

Argumenty

vehiclevehicle
Pojazd.
componentstring
Nazwa części.

Różnice względem MTA:SA

  • Tych argumentów z MTA:SA tu nie ma: string base = "root"

W MTA:SA

getVehicleComponentPosition(vehicle theVehicle, string theComponent, string base = "root")

Zwraca

x, y, z.

Przykład

local vehicle = createVehicle(411, 2000, -1690, 13.5)
local x, y, z = getVehicleComponentPosition(vehicle, "bonnet_dummy")

Zobacz też