Files
overextended.github.io/docs/ox_lib/Shared/version.md
T
2022-03-16 12:36:12 +11:00

12 lines
317 B
Markdown

# Dependency version
### lib.checkDependency
Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.
```lua
-- repository: string
-- version: string
lib.checkDependency(repository, version)
if not lib.checkDependency('ox_lib', '1.5.0') then error() end
```