# outsider medicalman

{% hint style="danger" %}
CLIENT SIDE&#x20;
{% endhint %}

<details>

<summary>STATEBAGS</summary>

```lua
-- for light checks
local isDoctor = LocalPlayer.state.IsDoctor

local isOnDuty = LocalPlayer.state.IsDoctorOnDuty
```

</details>

{% hint style="danger" %}
SERVER SIDE
{% endhint %}

<details>

<summary>STATEBAGS</summary>

```lua
-- for light checks
local isDoctor = Player(source).state.IsDoctor

local isOnDuty = Player(source).state.IsDoctorOnDuty
```

</details>

<details>

<summary>EXPORTS</summary>

```lua
---@param source integer
---@return boolean
local isOnDuty = exports.outsider_medicalman:IsOnMedicalDuty(source)

---@return boolean
local isAnyDoctorOnDuty = exports.outsider_medicalman:IsAnyDoctorOnDuty()

---@param location string the location to go on duty
exports.outsider_medicalman:SetOnDuty(location)

---@param location string the location to go off duty
exports.outsider_medicalman:SetOffDuty(location)
```

</details>

if more documentation is needed please ask in our discord for it
