restructure ox_lib docs

This commit is contained in:
Linden committed 2022-05-12 18:07:54 +10:00
1 parent 8081132d6f
commit a8be760943
21 files changed
+5 -30

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
### lib.versionCheck
Compares the resource version to the latest published release on GitHub.
```lua
-- repository: string
lib.versionCheck(repository)
lib.versionCheck('overextended/ox_lib')
```
[Utilises GitHub's release API](https://docs.github.com/en/rest/reference/releases)
+9
View File
@@ -0,0 +1,9 @@
### lib.checkDependency
Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.
```lua
-- resource: string
-- version: string
lib.checkDependency(resource, version)
if not lib.checkDependency('ox_lib', '1.5.0') then error() end
```