# Salary

> Reference for Salary in ambulancejob.

[All server exports](/docs/jobs/ambulancejob/api/server-exports)

## Salary

Pause or resume salary payouts for ambulance employees. These exports are provided by `sky_jobs_base` and work for all job types.

### `pausePlayerSalary(playerId)`

- **Purpose**: Pauses salary payouts for the given player.
- **Arguments**:

  - `playerId` (`number`) — the server ID of the player.
- **Returns**: `boolean` — `true` on success.

### `resumePlayerSalary(playerId)`

- **Purpose**: Resumes salary payouts for the given player.
- **Arguments**:

  - `playerId` (`number`) — the server ID of the player.
- **Returns**: `boolean` — `true` on success.

### `isPlayerSalaryPaused(playerId)`

- **Purpose**: Checks whether salary payouts are currently paused.
- **Arguments**:

  - `playerId` (`number`) — the server ID of the player.
- **Returns**: `boolean` — `true` if paused.

```lua
-- Pause salary (e.g. when player is AFK)
exports["sky_jobs_base"]:pausePlayerSalary(playerId)

-- Resume salary (e.g. when player returns)
exports["sky_jobs_base"]:resumePlayerSalary(playerId)

-- Check if paused
local paused = exports["sky_jobs_base"]:isPlayerSalaryPaused(playerId)
```

<callout color="info" icon="i-lucide-info">

See the [Sky Jobs Base Server Exports](/docs/base/jobs-base/server-exports#salary) for full documentation and usage examples.

</callout>

<br />
