getVehicleAdjustableProperty | Multi Theft Auto: Wiki Skip to content

getVehicleAdjustableProperty

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.


Use this to get the value of a vehicles adjustable property. This property relates to movable parts of a model, for example hydra jets or dump truck tray.

Syntax

getVehicleAdjustableProperty ( )

Code Examples

client

This example creates a command, so if the local player wants to know how much they tilt/adjusted a vehicle adjustable property

addCommandHandler("getAdjust",function()
if isPedInVehicle(localPlayer) then
local adjusted = getVehicleAdjustableProperty(getPedOccupiedVehicle(localPlayer))
if adjusted then
outputChatBox(adjusted)
else
outputChatBox("Sorry, but your vehicle doesn't have any adjustable properties!")
end
else
outputChatBox("Sorry, but you have to be in a vehicle to use this command!")
end
end)

See Also

Vehicle Functions