SetPlaneSectionDamageScale
DocsSetPlaneSectionDamageScale(vehicle, damageSection, damageScale)Description
Adjusts the scale of damage applied to a specified section of a plane.
In the decompiled scripts the damageScale is always set to 0f (maybe to disable damages on the specified section)
enum ePlaneDamageSection {
WING_L = 0,
WING_R = 1,
TAIL = 2,
ENGINE_L = 3,
ENGINE_R = 4,
ELEVATOR_L = 5,
ELEVATOR_R = 6,
AILERON_L = 7,
AILERON_R = 8,
RUDDER = 9,
RUDDER_2 = 10,
AIRBRAKE_L = 11,
AIRBRAKE_R = 12
}NativeDB Introduced: v1290
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | Plane to which the damage scale adjustment will be applied. |
damageSection | int | Specific section of the plane, as defined in the `ePlaneDamageSection` enum, where the damage scale will be adjusted. |
damageScale | float | A float value representing the scale of damage to be applied to the specified section. |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.