From b47236951eedfdef2bd65ef078a409aa81135da5 Mon Sep 17 00:00:00 2001 From: renaiku Date: Thu, 30 Nov 2017 03:05:41 +0100 Subject: [PATCH] ESX.GetPedMugshot --- client/functions.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/functions.lua b/client/functions.lua index 6729f0da..a2478a63 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -291,6 +291,14 @@ ESX.GetWeaponLabel = function(name) end +ESX.Game.GetPedMugshot = function(ped) + mugshot = RegisterPedheadshot(ped) + while not IsPedheadshotReady(mugshot) do + Wait(0) + end + return mugshot, GetPedheadshotTxdString(mugshot) +end + ESX.Game.Teleport = function(entity, coords, cb) RequestCollisionAtCoord(coords.x, coords.y, coords.z)