> For the complete documentation index, see [llms.txt](https://docs.sourcedev.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcedev.pro/src-billing/client-functions.md).

# Client Functions

This page provides detailed information about the functions available in the Client-side Bridge (`bridge/client.lua`).

## Core Functions

### `Bridge.GetPlayerData()`

Returns the full player data table from the framework.

* **Returns:** `table`

### `Bridge.GetPlayerJob()`

Returns the player's current job information.

* **Returns:** `table { name, label, grade, isBoss }`

### `Bridge.GetPlayerName()`

Returns the character's full name.

* **Returns:** `string`

### `Bridge.GetPlayerIdentifier()`

Returns the player's unique character identifier (e.g., Citizen ID, License).

* **Returns:** `string`

***

## Utility Functions

### `Bridge.Notify(message, type, duration)`

Shows a framework-specific notification.

* **Arguments:**
  * `message` (string): The text to display.
  * `type` (string): 'success', 'error', 'info', or 'warning'.
  * `duration` (number): Duration in milliseconds.

### `Bridge.HasAllowedJob()`

Checks if the player's current job is in the allowed jobs list.

* **Returns:** `boolean`

### `Bridge.GetNearbyPlayers()`

Returns a list of players within the detection radius.

* **Returns:** `table`

***

## Example Usage

### Checking Permissions

```lua
if Bridge.HasAllowedJob() then
    print("Player is authorized to issue invoices")
end
```

### Showing a Custom Notification

```lua
Bridge.Notify("Operation successful", "success", 3000)
```

### Getting Character Name

```lua
local name = Bridge.GetPlayerName()
print("Hello, " .. name)
```
