ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getVehicleComponentScale

Function

getVehicleComponentScale

Returns the part scale stored with setVehicleComponentScale (1, 1, 1 when not set).

Syntax

float, float, float getVehicleComponentScale(vehicle vehicle, string component)

Arguments

vehiclevehicle
The vehicle.
componentstring
Part name.

Differences from MTA:SA

  • These MTA:SA arguments are not here: string base = "root"

In MTA:SA

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

Returns

Scale x, y, z.

Example

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

See also