# Duty System

<figure><img src="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2Fy1nbXHHK0ZVoXfWDTGvB%2Fduty.png?alt=media&#x26;token=5e10387c-c177-46c6-9ebe-a1b73f59ca2a" alt=""><figcaption></figcaption></figure>

### 🔹 Main Features

1. **Clock In / Clock Out**
   * The main function is to switch between **On Duty** and **Off Duty** states.
   * Pressing **Go On Duty** sets the player as active in their job.
   * Pressing again switches them to **Off Duty**.
2. **Player Information**
   * Shows player name, citizen ID, and job.
   * Displays current status (**On Duty / Off Duty**).
   * Real-time clock is shown in the top-right corner for shift tracking.
3. **Worker List**
   * Shows all employees currently active in the same job (e.g., all on-duty police).
   * Lets officers/EMS see who else is available at that moment.
4. **History**
   * Logs each duty session with timestamps.
   * Example:
     * Furkan Test → Police
     * 17:55:46 – 17:55:48 (0.0 minutes).
   * Helps track attendance and working hours for RP or server management.

***

### 🔹 Workflow Example

1. Player enters the duty management menu.
2. If off duty → presses **Go On Duty**.
3. System changes their status to active and logs the start time.
4. Other employees can see them listed in the **Worker List**.
5. When finishing work, player goes off duty → system logs the end time.
6. The duty session appears in the **History** tab.

***

### 🔹 Advantages

* **Transparency:** Everyone can see who’s on duty.
* **Shift Tracking:** Keeps accurate records of start and end times.
* **Roleplay Realism:** Simulates real police/EMS duty logs.
* **Management Tool:** History can be used by high command to check activity.
