GetVehicleAdjustableProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: getVehicleAdjustableProperty 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. ...)
 
mNo edit summary
Line 1: Line 1:
getVehicleAdjustableProperty
{{Client function}}
 
 
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.
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==
<syntaxhighlight lang="lua">bool/int getVehicleAdjustableProperty ( vehicle )</syntaxhighlight>


bool/int getVehicleAdjustableProperty ( vehicle )
===Returns===
 
If successful, returns a value from 0 upwards representing adjustment. 0 is default position. Maximum varies per vehicle, for example hydra horizontal flight is 5000, while dump truck tray max tilt is 2500. Returns ''false'' in case of failure.
 
Returns:
 
false : This vehicle has no adjustable property
 
int : Value from 0 upwards representing adjustment. 0 is default position. Maximum varies per vehicle, for example hydra horizontal flight is 5000, while dump truck tray max tilt is 2500.
 
 
 
*This page needs proper formatting.

Revision as of 02:04, 5 January 2009

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

bool/int getVehicleAdjustableProperty ( vehicle )

Returns

If successful, returns a value from 0 upwards representing adjustment. 0 is default position. Maximum varies per vehicle, for example hydra horizontal flight is 5000, while dump truck tray max tilt is 2500. Returns false in case of failure.