setPlaneSectionDamageScale
SET_PLANE_SECTION_DAMAGE_SCALE0x0BBB9A7A8FFE931BThe GTA V native SET_PLANE_SECTION_DAMAGE_SCALE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setPlaneSectionDamageScale, in JavaScript and in Lua.
setPlaneSectionDamageScale(
vehicle: Vehicle,
section: number,
damageScale: number
): voidsetPlaneSectionDamageScale(
vehicle: Vehicle,
section: integer,
damageScale: number
)Usage
JavaScript
setPlaneSectionDamageScale(vehicle, section, damageScale);Lua
setPlaneSectionDamageScale(vehicle, section, damageScale)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
section | int | number | integer |
damageScale | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
section must be between 0 and 12; damageScale must be a finite number. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
⚠
Signature under review
LS:MP's table describes the parameters of this native differently from the current native database (void SET_PLANE_SECTION_DAMAGE_SCALE(Vehicle vehicle, Any p1, Any p2)). Until the table is refreshed, some values may be passed or returned under the wrong type.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_PLANE_SECTION_DAMAGE_SCALE(Vehicle vehicle, int section, float damageScale)- Hash
0x0BBB9A7A8FFE931B- Introduced
- Game build 1290 legacy numbering