Configuring this resource
π Installation
Download and add
MirrorParkStudios-ShieldSystemto your server'sresources/folder.In your
server.cfg, add:ensure MirrorParkStudios-ShieldSystemEdit
Shared/Config.luato match your server needs.Restart the resource or the server to apply your changes.
βοΈ Configuration
All settings are controlled via Shared/Config.lua. Below is an explanation of each section:
π« Weapon Settings
These settings determine what weapons are automatically given when a shield is equipped.
Config.PistolWeapon = `WEAPON_PISTOL`
Config.PistolWeaponComponents = {
`COMPONENT_AT_PI_FLSH`
}
Config.BatonWeapon = `WEAPON_POBATON`π¬ Command Options
These allow players to activate shields via chat commands.
You can change these command names to anything you'd like.
π¦ Export Options
These allow shields to be triggered from other scripts.
Example usage:
π Access Restriction
This function allows you to restrict who can use the shield commands or exports.
Return true to allow access or false to block it based on your logic.
Last updated