Skip to content

Commit

Permalink
chore(compatibility): remove compatibility message
Browse files Browse the repository at this point in the history
  • Loading branch information
ahcenezdh committed Aug 6, 2024
1 parent 2c29013 commit ba5b35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions VEHICLE/DoesVehicleHaveRoof.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions VEHICLE/IsVehicleAConvertible.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba5b35e

Please sign in to comment.