mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
* oxmysql and some lib interface fixes - Various fixes throughout oxmysql - started ox_lib audit * chore: More clean up - Reword some confusing descriptions - Add some descriptions - Type fixes - Spelling and grammar fixes - Swapping in `-` where `*` used to be for bullet point consistency ox_lib - Interface, ACL through GetClosestVehicle audited * chore: Finishing up ox_lib
33 lines
509 B
Plaintext
33 lines
509 B
Plaintext
### lib.versionCheck
|
|
|
|
Compares the resource version to the latest published release on GitHub.
|
|
|
|
import { Tabs, Tab } from 'nextra-theme-docs';
|
|
|
|
```lua
|
|
lib.versionCheck(repository)
|
|
```
|
|
|
|
- repository: `string`
|
|
|
|
<Tabs items={["Lua", "JS"]}>
|
|
<Tab>
|
|
|
|
```lua
|
|
lib.versionCheck('overextended/ox_lib')
|
|
```
|
|
|
|
</Tab>
|
|
<Tab>
|
|
|
|
```ts
|
|
import lib from '@overextended/ox_lib/server'
|
|
|
|
lib.versionCheck('overextended/ox_lib')
|
|
```
|
|
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
[Utilises GitHub's release API](https://docs.github.com/en/rest/reference/releases)
|