getVehicleComponentScale | Multi Theft Auto: Wiki Skip to content

getVehicleComponentScale

Client-side
Server-side
Shared

Pair: setVehicleComponentScale

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the component scale of a vehicle.

Syntax

getVehicleComponentScale ( )

Code Examples

client
addCommandHandler("vcs", -- short for 'vehicle component scale'
function()
local theVeh = getPedOccupiedVehicle(localPlayer)
local getComponent = getVehicleComponents(theVeh) -- returns table with all the components of the vehicle
if (theVeh) then
for k in pairs (getComponent) do
local x, y, z = getVehicleComponentScale(theVeh, k)
outputChatBox("Scale of "..k.." is"..x.." "..y.." "..z)
end
end
end
)

See Also

Vehicle Functions