Server

versionCheck

Checks GitHub for the latest release version of a repository and prints a warning if a newer version is available.

fjsf.versionCheck(repository)

Description

Fetches the latest release from GitHub and compares it with the current resource version. If the local version is outdated, update information is printed to the console.

This function is intended to be called during resource startup.


Parameters

repository string GitHub repository identifier in the format:

owner/repository

Returns

Nothing.


Example

fjsf.versionCheck('Dannyfjsff/fjsf_armour')

checkDependency

Validates that a dependency resource exists, is started, and optionally meets a minimum required version.

Description

Checks whether a dependency resource:

  • exists

  • is started

  • satisfies the minimum version requirement (if provided)

Useful for validating required resources before continuing execution.


Parameters

resourceName string Name of the dependency resource.

minimumVersion string | nil Minimum required version of the dependency. If omitted, only resource existence and state are checked.


Returns

success boolean true if the dependency is valid, otherwise false.

errorMessage string | nil Error message describing the failure reason when validation fails.


Example

Last updated