Modules
Version
Server

Server

This will check your script's version with its version on github using API

lib.version.source

this will check the version of the script's source code on github using the API

lib.version.source(repository, resourceName)

Parameter

  • repository string: the repository of the script
  • resourceName string: the name of the resource, optional

Return

  • boolean: true if the script is up to date, false if not
  • string: the version of the script

Example

lib.version.source('https://github.com/Trippler/tr_lib')
lib.version.source('https://github.com/Trippler/tr_lib', 'tr_lib')

Notes

  • Archived repositories are skipped
  • Repository with no fxmanifest.lua at the very top are skipped

lib.version.release

this will check the version of the script's latest release on github using the API

lib.version.release(repository, resourceName)

Parameter

  • repository string: the repository of the script
  • resourceName string: the name of the resource, optional

Return

  • boolean: true if the script is up to date, false if not
  • string: the version of the script

Example

lib.version.release('https://github.com/Trippler/tr_lib')
lib.version.release('https://github.com/Trippler/tr_lib', 'tr_lib')

Notes

  • Archived repositories are skipped
  • Repository with no release are skipped