UpdateVehicleDamageStatus

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:16, 23 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 04:26, 5 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 19: Line 19:
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); //Setting tires to 15 will pop them all UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); //Setting tires to 15 will pop them all
</pawn> </pawn>
- 
-[[Category:Scripting Functions]] 
{{RelatedFunctions}} {{RelatedFunctions}}
Line 30: Line 28:
{{RelatedCallbacksFunction}} {{RelatedCallbacksFunction}}
{{OnVehicleDamageStatusUpdate}} {{OnVehicleDamageStatusUpdate}}
 +
 +[[Category:Scripting Functions]]
 +
 +[[fr:UpdateVehicleDamageStatus]]

Revision as of 04:26, 5 February 2014



UpdateVehicleDamageStatus was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Sets the various visual damage statuses of a vehicle, such as popped tires, broken lights and damaged panels.


Parameters:
(vehicleid, panels, doors, lights, tires)
vehicleidThe ID of the vehicle to set the damage of.
panelsA set of bits containing the panel damage status.
doorsA set of bits containing the door damage status.
lightsA set of bits containing the light damage status.
tiresA set of bits containing the tire damage status.


Return Values:

This function does not return any specific values.


new panels, doors, lights, tires;	
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); //Setting tires to 15 will pop them all

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

In other languages