12 lines
		
	
	
	
		
			311 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			311 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
local ESX = GetResourceState('es_extended'):find('start') and exports['es_extended']:getSharedObject() or nil
 | 
						|
 | 
						|
if not ESX then return end
 | 
						|
 | 
						|
function Notification(msg)
 | 
						|
    ESX.ShowNotification(msg)
 | 
						|
end
 | 
						|
 | 
						|
RegisterNetEvent('esx:playerLoaded')
 | 
						|
AddEventHandler('esx:playerLoaded', function()
 | 
						|
    onPlayerLoaded()
 | 
						|
end)
 |