Configuring this resource

πŸ“ Installation

  1. Download and add MirrorParkStudios-ShieldSystem to your server's resources/ folder.

  2. In your server.cfg, add:

    ensure MirrorParkStudios-ShieldSystem
  3. Edit Shared/Config.lua to match your server needs.

  4. 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