getVehicleComponents | Multi Theft Auto: Wiki Skip to content

getVehicleComponents

Client-side
Server-side
Shared

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 a table of the components currently on a vehicle.

Syntax

getVehicleComponents ( )

Code Examples

client
addCommandHandler ( "gvc",
function ( )
local theVehicle = getPedOccupiedVehicle ( localPlayer )
if ( theVehicle ) then
for k in pairs ( getVehicleComponents ( theVehicle ) ) do
outputChatBox ( k )
end
end
end
)

See Also

Vehicle Functions