mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
ESX.Game.GetPedMugshot() second argument transparent
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user