Parameters:- vehicle:
The vehicle to which the roof state will be applied.
- toggle:
Boolean value where true
adds the roof and false
removes it, applicable only if the vehicle has a version with and without a roof.
Enables or disables the convertible roof on vehicles that support old-style GTA IV roofs, which are not animated. Setting toggle
to true will apply the roof to the vehicle, and setting it to false will remove the roof, assuming the vehicle has versions with and without a roof.
If you want to lock or unlock the roof mechanism, use SET_CONVERTIBLE_ROOF_LATCH_STATE
.
You can check if the vehicle has a roof with DOES_VEHICLE_HAVE_ROOF
.
NativeDB Introduced: v323
Vehicles with both roofed and roofless versions (others may exist; this list is compiled from decompiled scripts).
- chino
- voltic
- buccaneer
- buccaneer2
- chino2
- faction
- faction2
- mamba