Client Character
Import
---@type NssLibsClientCharacterApi
character_client_api = exports.nss_libs:getClientCharacterApi(GetCurrentResourceName())Methods
listenSelectedCharacter(callback, on_destroy_callback)
listenSelectedCharacter(callback, on_destroy_callback)character_client_api:listenSelectedCharacter(function(char_id)
print('Selected character id: ' .. char_id)
-- DO YOUR STUFF HERE
end)resetAllSelectedCharacterListener()
resetAllSelectedCharacterListener()resetApi()
resetApi()Last updated
Was this helpful?