file-exportExports

Server Export – Interaction Coins

grp_ai_world exposes one server-side export for use in other scripts.

Export Details

Export
Side
Purpose

AddInteractionCoins

Server

Adds interaction coins for a player by identifier

Usage (server-side):

exports.grp_ai_world:AddInteractionCoins(identifier, amount)

Parameters

  • identifier – string (citizenid, license:xxx, or any stable player ID you use)

  • amount – number of coins to add (must be ≥ 1)

Returns

  • true – coins added successfully

  • false – invalid arguments or failure

Example

exports.grp_ai_world:AddInteractionCoins("citizenid:ABCD1234", 10)

Last updated