From the reference libraryRedM

autodoc_shared_functions

jo_libs/modules/resource/autodoc/autodoc_shared_functions.md

autodoc_shared_functions

JO Functions > jo.resource.isConvarMatching()

Check if a resource matches the expected state and version/convar condition <br> A "!" prefixed resource must NOT be running; otherwise the resource must be running and satisfy its condition <br>

JO Functions > jo.resource.isConvarMatching() > Syntax

jo.resource.isConvarMatching(str)

JO Functions > jo.resource.isConvarMatching() > Parameters

str : string

(resourceName:convar(< > <= >= ==)value) or "!resourceName"

JO Functions > jo.resource.isConvarMatching() > Return Value

Type : boolean

true if the resource matches

Back to documentation