if GetResourceState('es_extended') ~= 'started' then return end if GetResourceState('ox_inventory') ~= 'started' then return lib.print.error('ox inventory is required for ESX bridge unless you make the changes yourself.') end local ESX = exports['es_extended']:getSharedObject() function GetPlayer(id) return ESX.GetPlayerFromId(id) end function DoNotification(src, text, nType) TriggerClientEvent('esx:showNotification', src, text, nType) end function GetPlyIdentifier(xPlayer) return xPlayer.identifier end function GetByIdentifier(cid) return ESX.GetPlayerFromIdentifier(cid) end function GetSourceFromIdentifier(cid) local xPlayer = ESX.GetPlayerFromIdentifier(cid) return xPlayer and xPlayer.source or false end function GetCharacterName(xPlayer) return xPlayer.getName() end function AddMoney(xPlayer, moneyType, amount) local account = moneyType == 'cash' and 'money' or moneyType xPlayer.addAccountMoney(account, amount, "newspaper-delivery") end AddEventHandler('esx:playerLogout', function(source) OnServerPlayerUnload(source) end)