Configuration
Check the instructions below.
The script offers two main configuration files: Config.lua and server_config.lua.
Config.lua
The Config.lua
file defines the settings for benches, items, and attachments. Below is a breakdown of the options:
General Settings
locale
Language for the script.
"en"
Bench Configuration
Benches can be configured using the following options:
type
Specifies the type of bench (prop
, coords
).
model
Model of the bench (for props).
coords
Position of the bench (for coordinate-based benches).
Example Bench Configuration:
Item Configuration
Items and their attachments can be customized as follows:
label
Name of the weapon or attachment.
image
Image file for the item (in html/images/
).
Attachments
List of attachments for the weapon.
Example Weapon Configuration:
Attachment Tags
Attachment-specific properties include:
damageTag
Affects weapon damage (true/false
).
accuracyTag
Affects weapon accuracy (true/false
).
key
Key for the attachment category.
server_config.lua
The server_config.lua
file manages server-side configurations such as Discord integration.
PhotoType
Source of player photos (steam
).
"steam"
NoImage
URL for placeholder image.
"https://cdn.discordapp...
DiscordBotToken
Token for Discord bot integration (replace with yours).
"YOUR_DISCORD_BOT_TOKEN"
Example Configuration:
Usage
Weapon Attachments
Attach Components: Attach specific components such as scopes, grips, and suppressors by interacting with configured benches.
Notifications
Notifications can be displayed to the player for various attachment actions.
Example Notification Trigger:
Message: Notification message.
Type: Notification type (
success
,error
).Duration: Time in milliseconds.
Last updated