getVehiclePanelState | Multi Theft Auto: Wiki Skip to content

getVehiclePanelState

Client-side
Server-side
Shared

Pair: setVehiclePanelState

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 returns the current state of a specifed panel on the vehicle. A vehicle can have up to 7 panels.

Syntax

getVehiclePanelState ( )

Code Examples

server

This function creates an admiral and outputs every panel's state in the chatbox.

local admiral = createVehicle ( 445, 0, 0, 10 )
for i=0, 6 do
local panel = getVehiclePanelState ( admiral, i )
outputChatBox ( tostring ( panel ) )
end

See Also

Vehicle Functions