Server

Export to obtain a player's static ID

Returns the Static ID of the currently loaded character for a player

exports['jc_multicharacter']:GetStaticID(source)

Parameters explained

  • source: number | Source of the connected player whose Static ID you want to obtain


Export to give or take away slots

Returns the Static ID of the currently loaded character for a player

exports['jc_multicharacter']:ModifyPlayerSlots(license, ammount, action)

Parameters explained

  • license : Obtain the player's license or citizen ID to grant them a slot

  • ammount : Enter the amount to remove or add, for example you can put 1, remove one or add 1

  • action : add or remove

For example:

local Player = QBCore.Functions.GetPlayer(source)
if not Player then return end
local citizenid = Player.PlayerData.citizenid

local newSlots = exports['jc_multicharacter']:ModifyPlayerSlots(citizenid, 1, 'add')

if newSlots then
    print('Slots updated:', newSlots)
end

Last updated