ox_target icon indicating copy to clipboard operation
ox_target copied to clipboard

Addition: export "zoneExists"

Open AnishBplayz opened this issue 1 year ago • 0 comments

Added a new function, api.zoneExists(id). This function checks whether a zone with the specified ID exists within the system. The ID parameter can be either a number or a string, representing the zone's index or name, respectively.

Changes Made:

  • Implemented the api.zoneExists(id) function.
  • Utilizes the Zones table to check for the existence of the specified zone.
  • Validates the input parameter ID to ensure it is either a number or a string.
  • Returns true if the zone with the specified ID exists; otherwise, it returns false.

This addition enhances the functionality of the codebase by providing a convenient method to verify the existence of zones based on their IDs.

AnishBplayz avatar Feb 25 '24 11:02 AnishBplayz