SetVehicleAdjustableProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{client function}}
{{client function}}
__NOTOC__


This function is used for adjusting the movable parts of a model, for example hydra jets or dump truck tray.
This function is used for adjusting the movable parts of a model, for example hydra jets or dump truck tray.
Line 6: Line 7:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
setVehicleAdjustableProperty ( element theVehicle, int value )
bool setVehicleAdjustableProperty ( element theVehicle, int value )
</syntaxhighlight>  
</syntaxhighlight>  


Line 20: Line 21:
Needs an example.
Needs an example.
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{Vehicle_functions}}
{{Vehicle_functions}}

Revision as of 05:35, 15 June 2009


This function is used for adjusting the movable parts of a model, for example hydra jets or dump truck tray. This function only works on vehicles with adjustable properties.

Syntax

bool setVehicleAdjustableProperty ( element theVehicle, int value )

Required Arguments

  • theVehicle: The vehicle you wish to change the adjustable property of.
  • value: A value from 0 between ?. (Set the adjustable value between 0 and N. 0 is the default value. It is possible to force the setting beyond default maximum, for example setting above 5000 on the dump truck (normal max 2500) will cause the tray to be fully vertical.)

Returns

Returns true if the adjustable property was set. Otherwise false.

Example

Needs an example.

See Also