ImperialCAD Documentation
Our DiscordHostingRadioWebsite
  • ImperialCAD
  • ▶️Getting Started
    • Creating Your ImperialCAD Account
    • Joining a Community
    • Setting Up Your Community
  • 🎖️Why Choose Us?
  • Purchasing
    • ❓Frequently Asked Questions
    • 📜Terms of Service
  • Tutorials / Guides
    • Home
    • Civilian
    • 👮Law Enforcement
    • 🚒Fire / Medical
    • Dispatch
    • Administration
      • Upload Laws as CSV
  • In-game Integrations
    • 💻ImperialCAD
    • 🆔ImperialDriversLic
    • 👮ImperialDuty
  • API Integrations
    • 🔌Understanding Imperial APIs
      • API Endpoints
        • Emergency Endpoints
  • Miscellaneous
    • Changelog
Powered by GitBook
On this page
  • Features
  • Commands
  • Installation
  • Requirements
  • Usage Notes

Was this helpful?

  1. In-game Integrations

ImperialDuty

The ImperialDuty script is designed to manage duty statuses and equipment within the game.

PreviousImperialDriversLicNextUnderstanding Imperial APIs

Last updated 1 month ago

Was this helpful?


Features

  • Duty Status Toggle: Allows users to switch their on-duty status with a single command, updating their status across relevant scripts.

  • Automatic Weapon Assignment: Configures and equips users with weapons specified in the main.lua under the shared folder, ready upon entering duty.

Commands

Command
Description

/duty <job>

Will add the relevant user to a respective tablet, assinging weapons, blips, and sending a webhhok.


Installation

To install the ImperialDuty script, follow these detailed steps:

  1. Download the Script Files Download the latest release from .

  2. Add to Your Server Resources Place the ImperialDuty folder into your server's resources directory.

  3. Community ID Configuration Set up a community ID to ensure all Imperial scripts interact seamlessly:

    • Locate your community ID in Admin Panel > Customization > Community ID.

    • Add the following line at the top of your server.cfg file:

      setr imperial_community_id "COMMUNITY_ID_HERE"
    • If this is your first Imperial script installation, this step is crucial.

  4. Ensure Resources in server.cfg Add the following line to your server.cfg to make sure the ImperialDuty script loads correctly:

    ensure ImperialDuty
  5. Restart Your Server Restart your server to enable the changes.


Requirements

  • Imperial CAD: This script requires an active Imperial CAD system to function effectively.

  • Weapon Configuration: Ensure weapons are correctly configured in main.lua under the shared folder prior to enabling the script.

Usage Notes

After installation, users can toggle their on-duty status by using the /duty command. This command will equip them with the weapons specified in the configuration file. It's important to check and update weapon configurations as needed to fit the server's role-play settings.


License

This script is owned by Imperial Solutions. Unauthorized copying, distribution, or use of this script without explicit permission is prohibited and may lead to legal repercussions.


For additional support, please visit the Imperial Solutions or consult our support channels.

👮
the repository
Support Discord