Worker, AI, and saved design configuration reference for 0r-clothing_designer
All editable runtime settings are in:
config/init.lua
Read this page after the setup guide and before first production use.
1. Worker Config#
The worker config is the most important part of the current runtime model.
Current keys:
Config.Worker.ModeConfig.Worker.NodePathConfig.Worker.PowerShellPath
Default block:
Config.Worker = Config.Worker or {
Mode = "external",
NodePath = "",
PowerShellPath = ""
}
Config.Worker.Mode#
Supported values:
externalinprocess
Use:
externaldefault and recommended starts a separate local daemon process for heavy worker actionsinprocessfallback mode keeps worker execution inside the FiveM JS runtime
If external fails to start, the resource does not auto-fallback. Switch to inprocess manually and restart the resource.
Config.Worker.NodePath#
Leave this empty unless you need to force a specific Node executable.
Use it only when:
- automatic Node resolution fails
- you want a fixed Node path for your host
Examples:
Config.Worker.NodePath = "C:/Program Files/nodejs/node.exe"
Config.Worker.NodePath = "/usr/bin/node"
Config.Worker.PowerShellPath#
Leave this empty unless you need to force a specific PowerShell executable.
Use it when:
- your host does not resolve the default PowerShell command correctly
- you want to pin
pwsh - you want to pin a known Windows PowerShell or PowerShell 7 path
Examples:
Config.Worker.PowerShellPath = "C:/Program Files/PowerShell/7/pwsh.exe"
Config.Worker.PowerShellPath = "/usr/bin/pwsh"
Changing worker mode or worker paths requires a resource restart.
2. AI Config#
Top-level keys:
Config.AI.EnabledConfig.AI.ProviderConfig.AI.GoogleConfig.AI.OpenAI
Supported providers:
googleopenai
If you do not want AI generation:
Config.AI.Enabled = false
Google AI settings#
Google fields:
ApiKeyModelAspectRatioImageSize
Current default provider is:
Config.AI.Provider = "google"
Official pages:
How to configure Google:
- sign in to Google AI Studio
- create an API key
- copy the key
- paste it into
Config.AI.Google.ApiKey - keep the default model unless you have a reason to change it
OpenAI settings#
OpenAI fields:
ApiKeyModelSizeQualityOutputFormat
To switch to OpenAI:
Config.AI.Provider = "openai"
Official pages:
How to configure OpenAI:
- sign in to the OpenAI platform
- create an API key
- copy the key
- paste it into
Config.AI.OpenAI.ApiKey - verify your billing and model access if requests fail
3. Saved Designs Config#
Top-level keys:
Config.SavedDesigns.EnabledConfig.SavedDesigns.Storage.ProviderConfig.SavedDesigns.Storage.FallbackProvidersConfig.SavedDesigns.Storage.DeleteRemoteOnDesignDeleteConfig.SavedDesigns.Storage.RequestTimeoutMs
If you do not want saved designs:
Config.SavedDesigns.Enabled = false
Storage providers#
Supported providers:
discord_webhookfivemanage
Discord webhook#
Fields:
UrlBotName
Use this when you want the generated preview asset to upload to a Discord webhook.
FiveManage#
Fields:
ApiKeyBasePath
Official pages:
How to configure FiveManage:
- sign in to FiveManage
- create or copy an API token
- place it into
Config.SavedDesigns.Storage.FiveManage.ApiKey - keep the default
BasePathunless you need a different remote folder structure
Example provider switch#
Config.SavedDesigns.Storage.Provider = "fivemanage"
Config.SavedDesigns.Storage.FallbackProviders = {
"discord_webhook"
}
4. Recommended First Production Review#
Before your first production start, confirm:
Config.Worker.Mode = "external"NodePathis empty unless you really need itPowerShellPathis empty unless you really need it- AI is either configured fully or disabled
- saved designs are either configured fully or disabled
5. No Extra Env File Is Required#
This resource does not require you to create a .env file for normal installation.
The supported customer-facing config surface is config/init.lua.
Do not leave live API keys or webhook URLs in public repositories.