πŸ’»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

Showing a Custom Notification

Getting Character Name

Last updated