RegisterNetEvent('qb-cityhall:server:requestId', function(item,hall)local src = sourcelocal Player = QBCore.Functions.GetPlayer(src)ifnot Player thenreturnendlocal itemInfo = Config.Cityhalls[hall].licenses[item] if not Player.Functions.RemoveMoney("cash", itemInfo.cost) then return TriggerClientEvent('QBCore:Notify', src, ('You don\'t have enough money on you, you need %s cash'):format(itemInfo.cost), 'error') end
local info = {}if itemInfo then exports.pickle_documents:GiveDocument(src, "Drivers", { address ="123 Park Rd", location ="Los Santos", height ="6'1", gender="M", eyes ="BROWN", }, { takePhoto =true })elsereturnendTriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], 'add')end)