Skip to content

Configuration

All Twinded scripts use the same configuration pattern: default files you can read, and a custom folder where you paste your overrides.

How it works

Each script has this structure:

twinded_scriptname/
└── config/
    ├── _default.lock/      ← Default config (DO NOT EDIT)
    │   ├── _init.lua
    │   ├── settings.lua
    │   ├── lang.lua
    │   └── webhook.lua
    └── custom/             ← Your overrides go here

Step by step

  1. Open config/_default.lock/ and find the file you want to change
  2. Copy that file into config/custom/
  3. Edit the copy in config/custom/
  4. Restart the resource:
/refresh
/ensure twinded_scriptname

Why this pattern?

Default files are never modified — they serve as a reference and are overwritten on updates. Your changes in custom/ are always preserved across script updates.

Example

To change the collection duration in twinded_collect:

  1. Copy config/_default.lock/settings.luaconfig/custom/settings.lua
  2. Edit only what you need:
lua
-- config/custom/settings.lua
Config.CollectDuration = 15000  -- 15 seconds instead of default 10

You only need to include the values you want to change — the defaults are loaded first, then your custom file overrides them.

Translations

Translations work the same way. Copy lang.lua to custom/ and edit:

lua
-- config/custom/lang.lua
Lang.collect_started = "Vous avez commencé à récolter %s"
Lang.collect_finished = "Vous avez récolté %sx %s"

Premium RedM Scripts — Multi-Framework