Add Player Kcoins

💰 AddPlayerKCoins

Description

Adds KCoins to a player’s balance. This can be used for rewards, payments, or admin top-ups.

Usage

exports['kartik-laptop']:AddPlayerKCoins(citizenId, amount, reason, from)

Parameters

Name
Type
Description

citizenId

string

The target player’s Citizen ID.

amount

number

Amount of KCoins to add.

reason (optional)

string

Description for the transaction (e.g. “Mission reward”).

from (optional)

string

Address or source (defaults to “SYSTEM”).

Returns

Type
Description

boolean

Returns true if the transaction succeeds, otherwise false.

Example

exports['kartik-laptop']:AddPlayerKCoins('CIT12345', 500, 'Event Reward', 'Admin')

Last updated