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

Funkcja

getVehicleComponentScale

Zwraca skalę części zapisaną przez setVehicleComponentScale (1, 1, 1, gdy nie ustawiono).

Składnia

float, float, float getVehicleComponentScale(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

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

Zwraca

Skala x, y, z.

Przykład

local vehicle = createVehicle(411, 2000, -1690, 13.5)
local sx, sy, sz = getVehicleComponentScale(vehicle, "exhaust_ok")

Zobacz też