GetVehicleUpgradeOnSlot: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
==Description==
{{Server client function}}
This function returns the current upgrade id on the specified vehicle's 'upgrade slot'
This function returns the current upgrade id on the specified vehicle's 'upgrade slot'
An upgrade slot is a certain type of upgrade (eg: exhaust, spoiler), there are 17 slots (0->16).
An upgrade slot is a certain type of upgrade (eg: exhaust, spoiler), there are 17 slots (0 to 16).


==Syntax==
==Syntax==

Revision as of 11:00, 13 August 2007

Description

This function returns the current upgrade id on the specified vehicle's 'upgrade slot' An upgrade slot is a certain type of upgrade (eg: exhaust, spoiler), there are 17 slots (0 to 16).

Syntax

getVehicleUpgradeOnSlot ( vehicle, slot )

Required Arguments

  • vehicle: The vehicle whose upgrade you want to retrieve.
  • slot: The slot id of the upgrade.

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
  outputChatBox ( "Upgrade on slot 0: " .. getVehicleUpgradeOnSlot ( newcar, 0 ) )
end

See Also