0.0.1
This commit is contained in:
11
resources/[esx_addons]/esx_service/client/main.lua
Normal file
11
resources/[esx_addons]/esx_service/client/main.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
RegisterNetEvent('esx_service:notifyAllInService')
|
||||
AddEventHandler('esx_service:notifyAllInService', function(notification, target)
|
||||
target = GetPlayerFromServerId(target)
|
||||
if target == PlayerId() then return end
|
||||
|
||||
local targetPed = GetPlayerPed(target)
|
||||
local mugshot, mugshotStr = ESX.Game.GetPedMugshot(targetPed)
|
||||
|
||||
ESX.ShowAdvancedNotification(notification.title, notification.subject, notification.msg, mugshotStr, notification.iconType)
|
||||
UnregisterPedheadshot(mugshot)
|
||||
end)
|
||||
Reference in New Issue
Block a user