#Converting qb command to qbx command

1 messages · Page 1 of 1 (latest)

jovial gate
#

Can some one help me convert this qb command to work for qbx?

QBCore.Commands.Add('csn', 'Check Your Citizen ID #', {}, false, function(source)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if not Player then return end
local citizenId = Player.PlayerData.citizenid
print("Your CID :"..citizenId)
TriggerClientEvent('QBCore:Notify', source, 'Your Citizen ID is: ' .. citizenId, 'primary', 10000)
end)

vestal umbra