Client Exports

This document contains all client-side exports available in Framework Core.


Interaction Prompts

Register core managed prompts. These are client-sided functions that allow you to create interactive prompt groups.

CreatePromptGroup

Create a group of prompts that can be enabled/disabled.

Parameter

Parameter
Required
Type
Description

prompts

List

A list of prompts to create the prompt group for

local promptGroupId = exports.core:CreatePromptGroup({
    {
        Id = 'prompt_internal_name',
        Complete = function()
            -- function to call when user selects item
        end,
        Title = '', -- The title of the prompt
        Icon = '', -- The font-awesome icon I.e. 'fas fa-circle'
        AutoComplete = false, -- Optional, auto-complete the prompt selection if only 1 prompt is available
    }
})

DeletePromptGroup

Remove a prompt group and delete it.

Parameter

Parameter
Required
Type
Description

promptGroupId

Int

The prompt group id

exports.core:DeletePromptGroup(promptGroupId)

ShowPromptGroup

Enable interaction and visibility of a prompt group

Parameter

Parameter
Required
Type
Description

promptGroupId

Int

The prompt group Id to enable

promptRestrictions

List

A list of prompts to enable if you don't want to enable them all

forceUpdate

Boolean

If we should force an update when the prompt group is already enabled. I.e. to enable a new restricted set of prompts

exports.core:ShowPromptGroup(promptGroupId, { 'prompt_internal_name' })

HidePromptGroup

Hides all prompts from a group

Parameter

Parameter
Required
Type
Description

promptGroupId

Int

The prompt group Id

exports.core:HidePromptGroup(promptGroupId)

CreatePrompt

Create a new prompt within an existing prompt group.

Parameter

Parameter
Required
Type
Description

prompt

Table

The prompt configuration object

promptGroup

Int

The prompt group ID to add this prompt to

exports.core:CreatePrompt({
    Id = 'new_prompt',
    Complete = function()
        -- function to call when user selects item
    end,
    Title = 'New Prompt',
    Icon = 'fas fa-star',
    AutoComplete = false
}, promptGroupId)

UpdatePromptTitle

Update the title of an existing prompt.

Parameter

Parameter
Required
Type
Description

promptGroup

Int

The prompt group containing the prompt

promptId

String

The id of the prompt to update

newTitle

String

The new title for the prompt

exports.core:UpdatePromptTitle(promptGroupId, 'prompt_id', 'New Title')

UpdatePromptIcon

Update the icon of an existing prompt.

Parameter

Parameter
Required
Type
Description

promptGroup

Int

The prompt group containing the prompt

promptId

String

The id of the prompt to update

newIcon

String

The new icon for the prompt

exports.core:UpdatePromptIcon(promptGroupId, 'prompt_id', 'fas fa-heart')

IsPromptGroupVisible

Check if a prompt group is currently visible.

Parameter

Parameter
Required
Type
Description

promptGroup

Int

The prompt group to check

local isVisible = exports.core:IsPromptGroupVisible(promptGroupId)

IsPromptVisible

Check if a specific prompt is currently visible.

Parameter

Parameter
Required
Type
Description

promptGroup

Int

The prompt group to check

promptId

String

The prompt id to check

local isVisible = exports.core:IsPromptVisible(promptGroupId, 'prompt_id')

DeletePrompt

Delete a prompt from an existing prompt group.

Parameters

Parameter
Required
Type
Description

promptGroup

Yes

Int

The prompt group ID

promptId

Yes

String

The prompt ID to delete

exports.core:DeletePrompt(promptGroupId, 'prompt_id')

GetGroupPrompts

Get all prompts in a prompt group.

Parameter

Parameter
Required
Type
Description

promptGroup

Yes

Int

The prompt group ID

Returns

Type
Description

Table

Table of prompts in the group, or nil if group doesn't exist

local prompts = exports.core:GetGroupPrompts(promptGroupId)

UpdatePromptComplete

Update the complete callback function for a prompt.

Parameters

Parameter
Required
Type
Description

promptGroup

Yes

Int

The prompt group ID

promptId

Yes

String

The prompt ID

complete

Yes

Function

New complete callback function

exports.core:UpdatePromptComplete(promptGroupId, 'prompt_id', function()
    print('New callback')
end)

PolyZone Functions

Functions for creating and managing interactive zones in the game world.

AddBoxZone

Create a rectangular zone for interactions.

Parameter

Parameter
Required
Type
Description

name

String

Unique name for the zone

vectors

Vector3

Center coordinates of the zone

length

Number

Length of the box

width

Number

Width of the box

options

Table

Additional zone options

local zone = exports.core:AddBoxZone('test_zone', vector3(-223.7, -1536.3, 31.6), 5.0, 5.0, {
    useZ = true,
    data = {
        job = 'police'
    }
})

AddCircleZone

Create a circular zone for interactions.

Parameter

Parameter
Required
Type
Description

name

String

Unique name for the zone

center

Vector3

Center coordinates of the zone

radius

Number

Radius of the circle

options

Table

Additional zone options

local zone = exports.core:AddCircleZone('test_zone', vector3(-223.7, -1536.3, 31.6), 5.0, {
    useZ = true,
    data = {
        job = 'police'
    }
})

AddPolyZoneEnterHandler

Add a callback function that triggers when a player enters a zone.

Parameter

Parameter
Required
Type
Description

zoneName

String

Name of the zone to monitor

cb

Function

Callback function to execute on enter

exports.core:AddPolyZoneEnterHandler('test_zone', function(data)
    if exports.core:HasJob('police') then
        exports.core:ShowPromptGroup(TestPrompt)
    end
end)

AddPolyZoneExitHandler

Add a callback function that triggers when a player exits a zone.

Parameter

Parameter
Required
Type
Description

zoneName

String

Name of the zone to monitor

cb

Function

Callback function to execute on exit

exports.core:AddPolyZoneExitHandler('test_zone', function()
    exports.core:HidePromptGroup(TestPrompt)
end)

RemoveZoneById

Remove a zone by its ID.

Parameter

Parameter
Required
Type
Description

id

Yes

Number

The zone ID to remove

exports.core:RemoveZoneById(zoneId)

IsInZone

Check if the player is currently in a zone.

Parameter

Parameter
Required
Type
Description

name

Yes

String

Name of the zone to check

Returns

Type
Description

Boolean

Returns true if player is in the zone

local inZone = exports.core:IsInZone('test_zone')

AddZoneEvent

Add a zone event.

Parameters

Parameter
Required
Type
Description

eventName

Yes

String

The event name

zoneName

Yes

String

The zone name

exports.core:AddZoneEvent('my_event', 'test_zone')

IsCoordInPoly

Check if coordinates are within a polygon zone.

Parameters

Parameter
Required
Type
Description

poly

Yes

Table

Polygon coordinates

coords

Yes

Vector3

Coordinates to check

Returns

Type
Description

Boolean

Returns true if coordinates are in polygon

local inPoly = exports.core:IsCoordInPoly(polygon, vector3(0, 0, 0))

Player Functions

Functions for checking player status, jobs, groups, and data.

HasJob

Check if the player has a specific job.

Parameter

Parameter
Required
Type
Description

job

String

Job name to check

local hasJob = exports.core:HasJob('police')

IsPlayerJob

Check if the player has a specific job.

Parameter

Parameter
Required
Type
Description

job

String

Job name to check

local isJob = exports.core:IsPlayerJob('police')

IsPlayerPolice

Check if the player is police and on duty.

Returns

Type
Description

Boolean

Returns true if player is police and on duty

local isPolice = exports.core:IsPlayerPolice()

HasGroup

Check if the player has any of the specified groups (jobs, gangs, etc.).

Parameter

Parameter
Required
Type
Description

filter

String/Table

Group name(s) or table of groups with grades

local hasGroup = exports.core:HasGroup('police')
local hasGroupWithGrade = exports.core:HasGroup({police = 2})

HasPrimaryGroup

Check if the player has the specified group as their primary job/gang.

Parameter

Parameter
Required
Type
Description

filter

String/Table

Group name(s) or table of groups with grades

local hasPrimaryGroup = exports.core:HasPrimaryGroup('police')

GetGroups

Get all groups (jobs, gangs) the player has.

Returns

Type
Description

Table

Table of groups with their grades

local groups = exports.core:GetGroups()

GetPlayerData

Get the current player's data.

Returns

Type
Description

PlayerData

Current player data object

local playerData = exports.core:GetPlayerData()

PlayerWithJobOnline

Check if a certain number of players with a specific job are online.

Parameters

Parameter
Required
Type
Description

job

Yes

String

Job name to check

amount

Yes

Number

Minimum number of players required

Returns

Type
Description

Boolean

Returns true if the required amount of players with the job are online

local enoughCops = exports.core:PlayerWithJobOnline('police', 5)

Interaction Functions

Functions for enabling and disabling interactions.

DisableInteraction

Disable a specific interaction type.

Parameter

Parameter
Required
Type
Description

interactType

Yes

String

The interaction type to disable

exports.core:DisableInteraction('menu')

EnableInteraction

Enable a previously disabled interaction type.

Parameter

Parameter
Required
Type
Description

interactType

Yes

String

The interaction type to enable

exports.core:EnableInteraction('menu')

CanInteract

Check if the player can interact (not paused, and interactions not disabled).

Parameter

Parameter
Required
Type
Description

interactionType

No

String

Optional interaction type to check

Returns

Type
Description

Boolean

Returns true if player can interact

if exports.core:CanInteract() then
    -- Do interaction
end

UI Functions

Functions for managing UI elements, notifications, and NUI communication.

ShowPrompt

Display a simple interaction prompt.

Parameter

Parameter
Required
Type
Description

id

String

Unique identifier for the prompt

text

String

Text to display

icon

String

Font Awesome icon class (optional)

count

Number

Number of prompts (optional)

exports.core:ShowPrompt('interact', 'Press E to interact', 'fas fa-hand-pointer', 1)

HidePrompt

Hide a specific prompt.

Parameter

Parameter
Required
Type
Description

id

String

Unique identifier for the prompt

exports.core:HidePrompt('interact')

HideAllPrompts

Hide all currently visible prompts.

exports.core:HideAllPrompts()

UpdatePromptTitle

Update the title of a visible prompt.

Parameter

Parameter
Required
Type
Description

id

String

Unique identifier for the prompt

title

String

New title text

exports.core:UpdatePromptTitle('interact', 'New Title')

SetPhoneOnScreen

Set phone visibility on screen, Attach this to your phone system

Parameter

Parameter
Required
Type
Description

visible

Yes

Boolean

Whether phone is visible

exports.core:SetPhoneOnScreen(true)

PersistentNotify

Show a persistent notification that doesn't auto-remove.

Parameters

Parameter
Required
Type
Description

id

Yes

String

Unique notification ID

text

Yes

String/Table

Notification text or table

notifyType

No

String

Notification type

duration

No

Number

Duration (-1 for persistent)

exports.core:PersistentNotify('notif_1', 'Persistent message', 'info', -1)

StopNotify

Stop/remove a persistent notification.

Parameter

Parameter
Required
Type
Description

id

Yes

String

Notification ID to remove

exports.core:StopNotify('notif_1')

Functions for creating and managing interactive menus.

openMenu

Open an interactive menu.

Parameter

Parameter
Required
Type
Description

settings

Table/String

Menu settings or namespace string

elements

Table

Array of menu elements

close

Function

Callback for when menu closes (optional)

selected

Function

Callback for when item is selected (optional)

change

Function

Callback for when item changes (optional)

exports.core:openMenu('my_menu', {
    {
        name = 'option1',
        label = 'Option 1',
        type = 'button'
    }
}, function(data)
    print('Menu closed')
end, function(data)
    print('Item selected:', data.elementSelected)
end)

closeMenu

Close the currently open menu.

Parameter

Parameter
Required
Type
Description

namespace

String

Menu namespace to close (optional)

exports.core:closeMenu('my_menu')

hideMenu

Hide/close the currently open menu (alias for closeMenu).

exports.core:hideMenu()

UpdateMenuElement

Update a menu element while menu is open.

Parameter

Parameter
Required
Type
Description

element

Yes

Table

Menu element table with name and updated properties

exports.core:UpdateMenuElement({
    name = 'option1',
    label = 'Updated Label',
    description = 'New description'
})

RemoveMenuElement

Remove a menu element while menu is open.

Parameter

Parameter
Required
Type
Description

element

Yes

Table

Menu element table with name property

exports.core:RemoveMenuElement({
    name = 'option1'
})

Progress Bar System

Functions for displaying and managing progress bars.

StartProgressBar

Start a progress bar with customizable options.

Parameter

Parameter
Required
Type
Description

cb

Function

Callback function when progress completes

length

Number

Duration in milliseconds

title

String

Title text for the progress bar

description

String

Description text (optional)

config

Table

Configuration options (optional)

exports.core:StartProgressBar(function(complete)
    if complete then
        print('Progress completed!')
    end
end, 5000, 'Processing...', 'Please wait', {
    canCancel = true,
    disableMovement = true,
    disableCombat = true
})

SetProgressBar

Update the progress bar value.

Parameter

Parameter
Required
Type
Description

val

Number

Progress value (0-100)

exports.core:SetProgressBar(50)

UpdateProgressBar

Update the progress bar title and description.

Parameter

Parameter
Required
Type
Description

title

String

New title text

description

String

New description text

exports.core:UpdateProgressBar('New Title', 'New Description')

CancelProgressBar

Cancel the current progress bar.

exports.core:CancelProgressBar()

Notification System

Functions for displaying notifications to players.

Notify

Display a notification to the player.

Parameter

Parameter
Required
Type
Description

text

String/Table

Notification text or table with text/caption

notifyType

String

Notification type ('info', 'success', 'error', 'warning')

duration

Number

Duration in milliseconds (optional)

subTitle

String

Subtitle text (optional)

notifyPosition

String

Position on screen (optional)

notifyStyle

Table

Custom styling (optional)

notifyIcon

String

Font Awesome icon (optional)

notifyIconColor

String

Icon color (optional)

exports.core:Notify('Hello World!', 'info', 5000)
exports.core:Notify({
    text = 'Success!',
    caption = 'Operation completed successfully'
}, 'success', 3000)

SimpleNotify

Display a simple notification with minimal parameters.

Parameter

Parameter
Required
Type
Description

text

String

Notification text

notifyType

String

Notification type (optional)

duration

Number

Duration in milliseconds (optional)

exports.core:SimpleNotify('Simple notification', 'info', 3000)

HUD Functions

Functions for managing the player HUD and vehicle HUD.

ShowHUD

Display the player HUD.

exports.core:ShowHUD()

HideHUD

Hide the player HUD.

exports.core:HideHUD()

UpdateStatusData

Update player status data (health, armor, hunger, thirst, etc.).

Parameter

Parameter
Required
Type
Description

data

Table

Status data object

exports.core:UpdateStatusData({
    health = 100,
    armor = 50,
    food = 80,
    water = 70,
    stress = 20,
    citizenId = 'ABC123'
})

UpdateHunger

Update player hunger level directly (for food systems).

Parameter

Parameter
Required
Type
Description

value

Number

Hunger value (0-100)

exports.core:UpdateHunger(75)

UpdateThirst

Update player thirst level directly (for drink systems).

Parameter

Parameter
Required
Type
Description

value

Number

Thirst value (0-100)

exports.core:UpdateThirst(60)

UpdateStress

Update player stress level directly.

Parameter

Parameter
Required
Type
Description

value

Number

Stress value (0-100)

exports.core:UpdateStress(25)

ShowVehicleHUD

Display the vehicle HUD.

exports.core:ShowVehicleHUD()

HideVehicleHUD

Hide the vehicle HUD.

exports.core:HideVehicleHUD()

UpdateVehicleHUD

Update vehicle HUD data.

Parameter

Parameter
Required
Type
Description

data

Table

Vehicle data object

exports.core:UpdateVehicleHUD({
    speed = 60,
    fuel = 75,
    speedPercent = 30,
    gear = '3',
    seatbelt = true
})

Entity Functions

Functions for managing entities, objects, and coordinates.

DeleteEntity

Delete a networked entity safely.

Parameter

Parameter
Required
Type
Description

ent

Entity

Entity to delete

exports.core:DeleteEntity(vehicle)

DeleteLocalEntity

Delete a local (non-networked) entity.

Parameter

Parameter
Required
Type
Description

ent

Entity

Entity to delete

exports.core:DeleteLocalEntity(object)

GetCoords

Get coordinates of an entity or current player position.

Parameter

Parameter
Required
Type
Description

entity

No

Entity

Entity to get coordinates from. If nil, returns player position

Returns

Type
Description

Vector4

Coordinates with heading (x, y, z, heading)

local coords = exports.core:GetCoords() -- Player position
local vehCoords = exports.core:GetCoords(vehicle) -- Vehicle position

GetObjects

Get all objects in the game world.

Returns

Type
Description

Table

Array of all object entities

local objects = exports.core:GetObjects()

GetClosestObject

Get the closest object to coordinates, optionally filtered by model.

Parameters

Parameter
Required
Type
Description

filter

No

String/Table

Model name(s) to filter by

coords

No

Vector3

Coordinates to check from. If nil, uses player position

Returns

Type
Description

Entity

Closest object entity

Number

Distance to object

local obj, dist = exports.core:GetClosestObject('prop_chair_01')
local obj2, dist2 = exports.core:GetClosestObject({'prop_chair_01', 'prop_table_01'}, vector3(0, 0, 0))

GetPlayersInArea

Get all players within a specified distance of coordinates.

Parameters

Parameter
Required
Type
Description

coords

No

Vector3

Coordinates to check from. If nil, uses player position

distance

No

Number

Maximum distance in meters. Default: 5.0

Returns

Type
Description

Table

Array of player IDs within range

local nearbyPlayers = exports.core:GetPlayersInArea(vector3(0, 0, 0), 10.0)

SpawnLocalObject

Spawn a local object at specified coordinates.

Parameter

Parameter
Required
Type
Description

model

String/Number

Model name or hash

coords

Vector3

Spawn coordinates

cb

Function

Callback function (optional)

local obj = exports.core:SpawnLocalObject('prop_chair_01', vector3(0, 0, 0), function(object)
    print('Object spawned:', object)
end)

TeleportToCoords

Teleport player to specified coordinates.

Parameter

Parameter
Required
Type
Description

coords

Vector3/Vector4

Target coordinates

includeVehicle

Boolean

Include vehicle in teleport (optional)

delay

Number

Delay before teleport (optional)

preFadeTime

Number

Fade out time (optional)

postFadeTime

Number

Fade in time (optional)

plyFade

Boolean

Player fade effect (optional)

exports.core:TeleportToCoords(vector3(0, 0, 0), true, 1000, 200, 200, true)

Animation Functions

Functions for loading and managing animations and models.

LoadAnimDict

Load an animation dictionary.

Parameter

Parameter
Required
Type
Description

dict

String

Animation dictionary name

exports.core:LoadAnimDict('anim@heists@prison_heiststation@cop_reactions')

RemoveAnimDict

Remove an animation dictionary from memory.

Parameter

Parameter
Required
Type
Description

dict

String

Animation dictionary name

exports.core:RemoveAnimDict('anim@heists@prison_heiststation@cop_reactions')

LoadModel

Load a model hash.

Parameter

Parameter
Required
Type
Description

model

String/Number

Model name or hash

exports.core:LoadModel('prop_chair_01')

Particle Effects

Functions for creating and managing particle effects.

LoadParticleFx

Load a particle effect asset.

Parameter

Parameter
Required
Type
Description

ptfx

String

Particle effect asset name

exports.core:LoadParticleFx('scr_trevor3')

StartParticleFxInArea

Start a particle effect in an area visible to nearby players.

Parameter

Parameter
Required
Type
Description

radius

Number

Effect radius

pos

Vector3

Position coordinates

particleId

String

Particle effect ID

allocatedId

Number

Allocated ID

ros

Table

Rotation and scale data

exports.core:StartParticleFxInArea(10.0, vector3(0, 0, 0), 'scr_trevor3', 1, {})

StartParticleFxForEntity

Start a particle effect attached to an entity visible to nearby players.

Parameters

Parameter
Required
Type
Description

netEnt

Yes

Number

Network entity ID

particleId

Yes

String

Particle effect ID

allocatedId

Yes

Number

Allocated ID

pos

Yes

Table

Position offset

ros

Yes

Table

Rotation and scale data

useEntityWeapon

No

Boolean

Whether to use entity's weapon bone

exports.core:StartParticleFxForEntity(netId, 'scr_trevor3', 1, {x=0,y=0,z=0}, {}, false)

Prop Animation Functions

Functions for animating props attached to the player.

StartPropAnim

Start a prop animation with an object attached to the player.

Parameters

Parameter
Required
Type
Description

options

Yes

Table

Animation configuration table

Options Table:

Key
Required
Type
Description

dict

Yes

String

Animation dictionary

anim

Yes

String

Animation name

prop

Yes

String

Prop model name

placement

Yes

Table

Attachment position/rotation {x, y, z, rx, ry, rz}

boneIndex

Yes

Number

Ped bone index to attach to

secondprop

No

Table

Optional second prop configuration

movement

No

Number

Movement flag (default: 50)

duration

No

Number

Animation duration, -1 for infinite (default: -1)

delayProp

No

Number

Delay before attaching prop

Returns

Type
Description

Table

Animation options table with animId

local anim = exports.core:StartPropAnim({
    dict = 'amb@world_human_drinking@beer@male@idle_a',
    anim = 'idle_a',
    prop = 'prop_beer_bottle',
    placement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
    boneIndex = 18905,
    movement = 50,
    duration = -1
})

StopPropAnim

Stop a prop animation and remove attached props.

Parameter

Parameter
Required
Type
Description

options

Yes

Table

Animation options table (must include animId)

exports.core:StopPropAnim(anim)

Ped Functions

Functions for creating and managing peds.

EnablePed

Enable a created interaction ped.

Parameter

Parameter
Required
Type
Description

pedKey

Yes

String

The ped key identifier

exports.core:EnablePed('shop_keeper')

DisablePed

Disable a created interaction ped.

Parameter

Parameter
Required
Type
Description

pedKey

Yes

String

The ped key identifier

exports.core:DisablePed('shop_keeper')

CreateInteractionPed

Create an interaction ped that can be managed.

Parameters

Parameter
Required
Type
Description

pedKey

Yes

String

Unique key identifier for the ped

pedOptions

Yes

Table

Ped configuration options

Ped Options:

Key
Required
Type
Description

Hash

Yes

String/Number

Ped model hash

Location

Yes

Vector4

Spawn location with heading

Enabled

No

Boolean

Whether ped is enabled (default: true)

exports.core:CreateInteractionPed('shop_keeper', {
    Hash = 'mp_m_shopkeep_01',
    Location = vector4(0.0, 0.0, 0.0, 0.0),
    Enabled = true
})

CreatePedByConfig

Create a ped from a configuration table.

Parameter

Parameter
Required
Type
Description

pedOptions

Yes

Table

Ped configuration table

Returns

Type
Description

Entity

Created ped entity

local ped = exports.core:CreatePedByConfig({
    Hash = 'mp_m_shopkeep_01',
    Location = {xyz = vector3(0, 0, 0), w = 0.0},
    Scenario = 'WORLD_HUMAN_SMOKING'
})

GetCreatedPed

Get a created interaction ped by key.

Parameter

Parameter
Required
Type
Description

name

Yes

String

Ped key identifier

Returns

Type
Description

Table

Ped data table or nil

local ped = exports.core:GetCreatedPed('shop_keeper')

Bucket Functions

Functions for managing routing buckets.

GetPlayerBucket

Get the routing bucket ID for a player.

Parameter

Parameter
Required
Type
Description

target

Yes

Number

Player source ID

Returns

Type
Description

Number

Bucket ID (0 if default)

local bucket = exports.core:GetPlayerBucket(source)

GetPlayersInBucket

Get all players in a specific routing bucket.

Parameter

Parameter
Required
Type
Description

id

Yes

Number

Bucket ID

Returns

Type
Description

Table

Table of player IDs in bucket, or nil if bucket doesn't exist

local players = exports.core:GetPlayersInBucket(5)

GetNumberInBucket

Get the number of players in a routing bucket.

Parameter

Parameter
Required
Type
Description

id

Yes

Number

Bucket ID

Returns

Type
Description

Number

Number of players in bucket

local count = exports.core:GetNumberInBucket(5)

GetLocalData

Get local player data (ID, ped, position, vehicle).

Returns

Type
Description

Number

Player ID

Entity

Player ped

Vector3

Current position

Entity

Current vehicle (or 0)

local playerId, ped, pos, vehicle = exports.core:GetLocalData()

Utility Functions

Miscellaneous utility functions.

IsWearingGloves

Check if the player is currently wearing gloves.

Returns

Type
Description

Boolean

Returns true if player is wearing gloves

local hasGloves = exports.core:IsWearingGloves()

Clipboard

Show a clipboard UI to the player.

Parameters

Parameter
Required
Type
Description

title

No

String

Clipboard title (default: "No Title Provided")

text

No

String

Clipboard text content (default: "no text in prama")

exports.core:Clipboard('Citizen ID', 'ABC12345')

closeClipboard

Close the clipboard UI.

exports.core:closeClipboard()

Last updated