From the reference libraryFiveM

Server

ox/ox_lib/Version/Server.mdx

Server

lib.versionCheck

Compares the resource version to the latest published release on GitHub.
Utilises GitHub's release API

lib.versionCheck(repository)
  • repository: string

      ```lua
      lib.versionCheck('overextended/ox_lib')
      ```
    
    
      ```ts
      import lib from '@overextended/ox_lib/server'
    
      lib.versionCheck('overextended/ox_lib')
      ```
    
Back to documentation