Configuration
Learn how to configure the Weapon Mod Workbench resource.
Change framework
-
Navigate to
config.lua
inside the resource folder, and look for -
Change the
ESX
to your desired framework. The supported frameworks are:ESX
QBCore
Standalone
To add a custom framework, you can learn how to create a custom framework here.
-
Save the file and restart the resource.
Change translation
- Navigate to
config.lua
inside the resource folder, and look for - Change the
en-US
to your desired language. You can find the list of supported languages inside thetranslations
folder. To add a new language, you can copy theen-US.lua
file and change theen-US
to your desired language code. - Save the file and restart the resource.
Change bench options
- Navigate to
config.lua
inside the resource folder, and look for - Change the options as you like. The options are:
allowMultipleUsers
- Allow multiple users to use the bench at the same time.isInvincible
- Make the player invincible while using the bench (works only if allowMultipleUsers is false)
- Save the file and restart the resource.
More options
- Navigate the
client.lua
inside your framework, which is inside theframeworks
folder. - Look for this code:
- Change the options as you like. The options are:
useCurrentWeapon
- Use the current weapon in the player's hand to modify, or show all weapons the player has.showAllWeapons
- Show all weapons in the bench menu, even if the player doesn't have them.manualApplyMods
- Manually apply the modifications to the weapon.
- Save the file and restart the resource.
Change bench type
- Navigate the
server.lua
inside your framework, which is inside theframeworks
folder. - Look for this code:
- Change the
type
to your desired bench type. The supported bench types are:BenchTypes.ITEM
- Use items to modify weapons.BenchTypes.PURCHASE
- Pay money to modify weapons.
- Save the file and restart the resource.