Skip to content

Addition: export "zoneExists"#136

Merged
thelindat merged 6 commits into
overextended:mainfrom
AnishBplayz:main
Jun 1, 2024
Merged

Addition: export "zoneExists"#136
thelindat merged 6 commits into
overextended:mainfrom
AnishBplayz:main

Conversation

@AnishBplayz

Copy link
Copy Markdown
Contributor

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.

Comment thread client/api.lua
@AnishBplayz

Copy link
Copy Markdown
Contributor Author

@thelindat This should be resolved now

@AnishBplayz AnishBplayz requested a review from thelindat May 13, 2024 05:39
@thelindat thelindat merged commit fd28987 into overextended:main Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants