mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
12 lines
317 B
Markdown
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
|
|
```
|