Hey people, i already do alot of researchs and i didnt got success, i already tried with Scaleform and hadnt got success too. So i decided to write this thread to know really if there are some tricks to get your ped as image like mugshot.
Exemple, getting this ped like as image or in scaleform
Alright, i made a deep research and thats not helped me. Let me clarify, i want to get a ped model of actual player in TXD like this native GetPedheadshotTxdString but i want full body not only the part head.
I did found a research in this forum about that,but I can’t find the link.
I remenber that you should use ClonePed,GivePedToPauseMenu and some pause menu functions to show that ped in pausemenu
Hey, even all these past months, I still couldn’t find the solution, one of them is the one on top, only it will keep the menus all active, and I don’t think I could deactivate them at that time. So I think this is impossible just to get the “ped” part.
function CreatePedScreen(first)
CreateThread(function()
local heading = GetEntityHeading(PlayerPedId())
SetFrontendActive(true)
ActivateFrontendMenu(GetHashKey("FE_MENU_VERSION_JOINING_SCREEN"), true, -1)
Wait(100)
SetMouseCursorVisibleInMenus(false)
PlayerPedPreview = ClonePed(PlayerPedId(), heading, true, false)
local x, y, z = table.unpack(GetEntityCoords(PlayerPedPreview))
SetEntityCoords(PlayerPedPreview, x, y, z - 10)
FreezeEntityPosition(PlayerPedPreview, true)
SetEntityVisible(PlayerPedPreview, false, false)
NetworkSetEntityInvisibleToNetwork(PlayerPedPreview, false)
Wait(200)
SetPedAsNoLongerNeeded(PlayerPedPreview)
GivePedToPauseMenu(PlayerPedPreview, 2)
SetPauseMenuPedLighting(true)
if first then
SetPauseMenuPedSleepState(false)
Wait(1000)
SetPauseMenuPedSleepState(true)
else
SetPauseMenuPedSleepState(true)
end
end)
end
I dont use ESX, In fact I have created my own framework that I am using. (I do not like ESX or QBCore)
I wont be able to help with the ESX stuff, but if you still need help with this, I will try my best