setVehiclePanelState | Multi Theft Auto: Wiki Skip to content

setVehiclePanelState

Client-side
Server-side
Shared

Pair: getVehiclePanelState

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 allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource.

Syntax

setVehiclePanelState ( )

Code Examples

server
-- create a new vehicle
local newcar = createVehicle ( 520, 1024, 1024, 1024 )
-- break the front bumper off
setVehiclePanelState ( newcar, 5, 3 )

See Also

Vehicle Functions