LowerConvertibleRoof
DocsLowerConvertibleRoof(vehicle, instantlyLower)Description
Introduced in build 323
Lowers the roof on a convertible vehicle, utilizing any available animations for the action. This native is particularly useful for creating a realistic interaction with convertible vehicles by animating the process of lowering the roof.
You can check if the vehicle has an convertible roof using <code>IS_VEHICLE_A_CONVERTIBLE</code>.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The convertible vehicle whose roof you want to lower. |
instantlyLower | BOOL | A boolean value indicating whether the roof should be lowered instantly without transitioning through the animation. Set to `false` to lower the roof with the animation or `true` to lower it instantly. |
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 vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if not IsVehicleAConvertible(vehicle, false) then return end
LowerConvertibleRoof(vehicle, false)