From ba5b35e7f7d3cbac449dca5f4c38a1c8eae5d39a Mon Sep 17 00:00:00 2001 From: Space V <40030799+ahcenezdh@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:17:05 +0200 Subject: [PATCH] chore(compatibility): remove compatibility message --- VEHICLE/DoesVehicleHaveRoof.md | 4 +--- VEHICLE/IsVehicleAConvertible.md | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/VEHICLE/DoesVehicleHaveRoof.md b/VEHICLE/DoesVehicleHaveRoof.md index 0a6850004..8e4b6ad29 100644 --- a/VEHICLE/DoesVehicleHaveRoof.md +++ b/VEHICLE/DoesVehicleHaveRoof.md @@ -10,8 +10,6 @@ BOOL DOES_VEHICLE_HAVE_ROOF(Vehicle vehicle); Determines whether a specific vehicle is equipped with a roof. -**Note**: For compatibility reasons, it's important to note that when a vehicle has a roof, this native returns `1` instead of `true`. - ``` NativeDB Introduced: v323 ``` @@ -20,7 +18,7 @@ NativeDB Introduced: v323 * **vehicle**: The vehicle to check for a roof presence. ## Return value -Returns `1` if the vehicle has a roof, `false` otherwise. This is for compatibility purposes. +Returns `true` if the vehicle has a roof, `false` otherwise. ## Examples ```lua diff --git a/VEHICLE/IsVehicleAConvertible.md b/VEHICLE/IsVehicleAConvertible.md index 6b4215319..def677d20 100644 --- a/VEHICLE/IsVehicleAConvertible.md +++ b/VEHICLE/IsVehicleAConvertible.md @@ -10,18 +10,16 @@ BOOL IS_VEHICLE_A_CONVERTIBLE(Vehicle vehicle, BOOL checkRoofExtras); Determines if a vehicle is a convertible with an animatable roof. This native checks if the specified vehicle model features a convertible roof that can be lowered or raised through an animation. -**Note**: It appears that `checkRoofExtras` is malfunctioning. When set to true, it returns `true` (`1`) every time. - ``` NativeDB Introduced: v323 ``` ## Parameters * **vehicle**: The vehicle to check. -* **checkRoofExtras**: When set to `false`, the function checks only for vehicles with an animatable convertible roof. Set to `true` to include additional checks for vehicles that might have a non-animatable roof (i.e., using vehicle extras) +* **checkRoofExtras**: When set to `false`, the native checks only for vehicles with an animatable convertible roof. Set to `true` to include additional checks for vehicles that might have a non-animatable roof (i.e., using vehicle extras) ## Return value -Returns 1 (`true`) if the vehicle is a convertible with an animatable roof or if `checkRoofExtras` is `true` and the vehicle has a roof (animatable or not). Returns `false` if the vehicle does not meet the criteria. For compatibility, the native returns integer 1 for `true` rather than a boolean `true`. +Returns `true` if the vehicle is a convertible with an animatable roof or if `checkRoofExtras` is `true` and the vehicle has a roof (animatable or not). Returns `false` if the vehicle does not meet the criteria. ## Examples ```lua