Fxmanifest.lua parameters to make a script require OneSync

Something like this comes to my mind:

onesync_required 'no' -- default, set onesync_enabled 0
onesync_required 'yes' -- set onesync_enabled 1
onesync_required 'infinity' -- set onesync_enableInfinity 1
onesync_required 'beyond' -- set onesync_enableBeyond 1

If the server does not matches the OneSync setting, a message like this will be shown:

"Script {placeholder} requires {OneSync/OneSync Infinity/OneSync Beyond} but is not enabled on this server"

Decent idea, should probably be added during server variable consolidation (and maybe made into a generic system for requiring configuration levels, e.g. a voice resource could require a specific voice mode setting, etc.)

3 Likes

This has now been implemented. Check the Runtime Constraints section of the resource manifest in the Cfx.re docs.

1 Like