SetPlaneTurbulenceMultiplier
DocsSetPlaneTurbulenceMultiplier(vehicle, multiplier)Description
This native sets the turbulence multiplier. It only works for planes.
0.0 = no turbulence at all.
1.0 = heavy turbulence.
Works by just calling it once, does not need to be called every tick.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The plane to set the multiplier for |
multiplier | float | The turbulence multiplier. Value between 0.0 and 1.0 |
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.
Examples
Official
local plane = GetVehiclePedIsIn(PlayerPedId(), false)
if IsThisModelAPlane(GetEntityModel(plane)) then
-- Goodbye turbulence!
SetPlaneTurbulenceMultiplier(plane, 0.0)
end