This module contains a character api that wraps characters from other frameworks like VorpCore. It offers some additional information like Steam ID, Discord ID, etc.
For client and server there are different helper libraries. The client helper is used for client side and the server helper is used for server side.
local name_of_admin_group ='admin'local example_player_id =99-- The server player id of a joined player---@typeNssLibsCharacterApicharacter_api = exports.nss_libs:getCharacterApi(GetCurrentResourceName(), name_of_admin_group)-- Add some moneycharacter_api:addMoney(example_player_id, 1000)-- Remove some moneycharacter_api:subMoney(example_player_id, 999)-- Check for moneyif character_api:hasMoney(example_player_id, 1) thenprint('Player has at least 1 money')end-- Get some informationprint(character_api:getDiscordProfileUrl(example_player_id))print(character_api:getSteamId(example_player_id))print(character_api:getRedmCharacterName(example_player_id))