Server Exports
Server exports allow external resources to retrieve saved skin data, modify player skin snapshots in the database (kc_player_skins), manage player outfit presets (kc_player_outfits), query item locks and compatibility rules, and manage Tebex design token credit balances (kc_design_credits).
📜 Server Export Functions
Appearance & Outfits
getPlayerAppearance: Retrieve active saved skin data for a player.savePlayerAppearance: Save skin configuration snapshot to database.getPlayerOutfits: Retrieve saved outfit presets for a player.savePlayerOutfit: Save new outfit preset for a player.deletePlayerOutfit: Delete saved outfit preset by ID.
Opening Menus On Another Player
grantSurgery: Open the surgery menu on a player, waiving every catalogue and cooldown rule.openMenuFor: Open any ordinary menu on a player, with its ordinary rules.
Garment Rules & Compatibility
mayWearItem: Check if a player meets job/grade/citizen restrictions for an item.getItemLocks: Retrieve all garment item lock rules.getItemCompat: Retrieve all authored garment compatibility rules.recommendedArmsFor: Get recommended arms for a specific garment variation.
Custom Designer & Tebex Monetization
addDesignCredits: Grant custom clothing design token credits to a player.takeDesignCredits: Deduct custom clothing design token credits from a player.getDesignCredits: Retrieve current design token credits balance for a player.tebexGrant: Grant Tebex design credit package to a player.tebexRevoke: Revoke Tebex design credit package grant.