Configuration
This configuration for our locker system:
Config.LockerModel = 'rd_locker'
This defines the model of the locker that will be used in the game. The model name isrd_locker
, so it likely refers to a custom locker prop or object.Config.InteractionDistance = 2.0
This sets the distance at which players can interact with the locker. If a player is within 2 meters of the locker, they will be able to interact with it.Config.LockerPrice = 50000
This is the price to purchase a locker. Players will need to pay 50,000 in-game currency to buy the locker.Config.MaxWeight = 50000
This sets the maximum weight of items that can be stored in the locker. Players can store up to 50,000 units of weight in their locker.Config.Slots = 20
The locker can hold up to 20 different items. This is the number of available slots in the locker for storing items.Config.maxLockers = 1
This limits players to having a maximum of 1 locker at a time. They can't purchase more than one.Config.allowedJob = 'admin'
This specifies that only users with theadmin
job are allowed to interact with or use this locker system.Config.Prefix = "locker_"
This is the prefix used for locker-related operations, possibly for creating or referencing locker objects in the system.Config.InteractionLabel = "RD LOCKERS"
This is the label that will appear when players are within the interaction distance of the locker. It tells players that the interaction is related to RD lockers.Config.InteractionIcon = "fas fa-box"
The icon displayed alongside the interaction label. It uses FontAwesome'sfa-box
icon, which visually represents a box.Config.MenuHeader = "RD LOCKER PURCHASE"
The header that appears in the menu when players attempt to buy a locker. It indicates that this menu is for purchasing an RD locker.Config.MenuText = "DO YOU WANT TO BUY THIS LOCKER FOR $" .. Config.LockerPrice .. "?"
This is the text that appears in the menu when asking players if they want to purchase the locker. The price is dynamically inserted from theConfig.LockerPrice
value (50,000).Config.RemoveMoney = 'bank'
This specifies where the money will be deducted from when a player buys the locker. In this case, it will deduct from the player's bank account.Config.Command = "createlocker"
This defines a command (createlocker
) that can be used to create a locker in the game. Likely, an admin or authorized player will use this command to spawn or manage lockers.
YOU CAN DELETE THE YMAP FILE AND MANIFEST IF YOU DON'T WANT TO USE IT
Last updated