Skip to content

Commit 45bb245

Browse files
Release 2023-11-13
1 parent 5949951 commit 45bb245

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

docs-gen/native-vehicle.def.lua

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13123,14 +13123,27 @@ function GetVehicleBodyHealth(vehicle) end
1312313123
function SetVehicleDoorControl(vehicle, doorIndex, speed, angle) end
1312413124

1312513125

13126-
--- SetConvertibleRoof
13127-
---
13126+
--- This allows for the vehicle's roof to be put on when set to true, and removed when set to false, provided that the vehicle has a version with a roof and a version without a roof.
13127+
---
13128+
--- #### Vehicles with both roofed and roofless versions (others may exist; this list is compiled from decompiled scripts).
13129+
---
13130+
--- * chino
13131+
--- * voltic
13132+
--- * buccaneer
13133+
--- * buccaneer2
13134+
--- * chino2
13135+
--- * faction
13136+
--- * faction2
13137+
--- * mamba
13138+
--- @usage -- In this case we are removing the roof from the vehicle.
13139+
--- local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
13140+
--- SetConvertibleRoof(vehicle, false
1312813141
--- @hash [0xF39C4F538B5124C2](https://docs.fivem.net/natives/?_0xF39C4F538B5124C2)
1312913142
--- @param vehicle Vehicle
13130-
--- @param p1 boolean
13143+
--- @param toggle boolean
1313113144
--- @return void
13132-
--- @overload fun(vehicle: Vehicle, p1: boolean): void
13133-
function SetConvertibleRoof(vehicle, p1) end
13145+
--- @overload fun(vehicle: Vehicle, toggle: boolean): void
13146+
function SetConvertibleRoof(vehicle, toggle) end
1313413147

1313513148

1313613149
--- N_0xf3b0e0aed097a3f5

0 commit comments

Comments
 (0)