AddVehicleUpgrade

From Multi Theft Auto: Wiki
Revision as of 22:00, 12 August 2007 by Jbeta (talk | contribs) (Added template, sections, minor changes)
Jump to navigation Jump to search

This function adds an upgrade to an existing vehicle, eg: nos, hyrdraulics. These upgrades are listed in San Andreas\data\maps\veh_mods\veh_mods.ide.

Syntax

Click to collapse [-]
Server and Client
bool addVehicleUpgrade ( vehicle theVehicle, int upgrade )

Required Arguments

  • theVehicle: The element representing the vehicle you wish to add the upgrade to.
  • upgrade: The id of the upgrade you wish to add. (1000 to 1193)

Returns

Returns true if the upgrade was successfully added to the vehicle, otherwise false.

Example

Click to expand [+]
Example 1
Click to expand [+]
Example 2

See Also