if GetResourceState('qb-core') ~= 'started' then return end local QBCore = exports['qb-core']:GetCoreObject() local ox_inv = GetResourceState('ox_inventory') == 'started' function GetPlayer(id) return QBCore.Functions.GetPlayer(id) end function DoNotification(src, text, nType) TriggerClientEvent('QBCore:Notify', src, text, nType) end function GetPlyIdentifier(Player) return Player.PlayerData.citizenid end function GetSourceFromIdentifier(cid) local Player = QBCore.Functions.GetPlayerByCitizenId(cid) return Player and Player.PlayerData.source or false end function GetCharacterName(Player) return Player.PlayerData.charinfo.firstname.. ' ' ..Player.PlayerData.charinfo.lastname end function AddMoney(Player, moneyType, amount) Player.Functions.AddMoney(moneyType, amount, "bewspaper-delivery") end RegisterNetEvent('QBCore:Server:OnPlayerUnload', function(source) OnServerPlayerUnload(source) end)