ESX.Game.GetPedMugshot() second argument transparent

This commit is contained in:
ElPumpo
2020-02-28 20:05:27 +01:00
parent 24a9defca4
commit 79d53a5550
+8 -2
View File
@@ -281,9 +281,15 @@ ESX.UI.ShowInventoryItemNotification = function(add, item, count)
})
end
ESX.Game.GetPedMugshot = function(ped)
ESX.Game.GetPedMugshot = function(ped, transparent)
if DoesEntityExist(ped) then
local mugshot = RegisterPedheadshot(ped)
local mugshot
if transparent then
mugshot = RegisterPedheadshotTransparent(ped)
else
mugshot = RegisterPedheadshot(ped)
end
while not IsPedheadshotReady(mugshot) do
Citizen.Wait(0)