Get Player Kcoins
🪙 GetPlayerKCoins
Description
Retrieves the total amount of KCoins owned by a player.
Usage
local balance = exports['kartik-laptop']:GetPlayerKCoins(citizenId)Parameters
Name
Type
Description
citizenId
string
The unique Citizen ID of the player whose balance you want to retrieve.
Returns
Type
Description
number
The total KCoins currently available in the player’s wallet.
Example
local playerBalance = exports['kartik-laptop']:GetPlayerKCoins('CIT12345')
print(("Player has %s KCoins"):format(playerBalance))Last updated