[SNIPPET] Stream Ped To PauseMenu

Here there a code-snippet how get his own ped or anyone other player and stream it on screen, currently I don’t know how change align of frontend, If someone already has knowledge about that, they are free to share.

Preview

I hope this can serve for great and fantastic resources.

Snippet

SetFrontendActive(true)
ActivateFrontendMenu(GetHashKey("FE_MENU_VERSION_EMPTY"), false, -1)

Citizen.Wait(100)
N_0x98215325a695e78a(false)

local PlayerPedPreview = ClonePed(PlayerPedId(), GetEntityHeading(PlayerPedId()), false, false)
SetEntityVisible(PlayerPedPreview, false, false)

Wait(200)
GivePedToPauseMenu(PlayerPedPreview, 2)
SetPauseMenuPedLighting(true)
SetPauseMenuPedSleepState(true)
Wait(6000) -- Prevention
SetFrontendActive(false) -- Prevention
14 Likes

A little demonstration what you can do

2 Likes

Very nice piece of info ! thanks for sharing , is there a way we could interact with the cloned char?(rotate with mouse) pretty much what this genius did back in the day THIS i cant figure how to reproduce it :man_shrugging:

:peace_symbol:

Yeah!

You need set properties like a normal ped, you can add properties to the ped was streamed to PauseMenu or get the return of GivePedToPauseMenu()

PlayerPedPreview = ClonePed(PlayerPedId(), GetEntityHeading(PlayerPedId()), false, false)
SetEntityVisible(PlayerPedPreview, false, false)

Wait(100)
local PedPreview = GivePedToPauseMenu(PlayerPedPreview, 2)
ApplyPedDamagePack(PedPreview, "BigHitByVehicle", 0.0, 1.0)
SetPedHeadBlendData(PedPreview , 0, 0, 0, 0, 0, 0, 0, 0, 0, false)
2 Likes

Hey my game keeping being on pause do you know how I can fix it please?

anyone figure out how to do this? Battle Royale V - Inventory UI (Progress/Update) - YouTube

Sadly that script is only for single player. However im sure you could find something similar for FiveM

How can I hide the black screen background on the ped?

Very nice :boom: , how do you remove the black bg from the ped ?

You can use

ReplaceHudColourWithRgba(117, R, G, B, A);

Where R,G,B and A are the components of the color you’d like to use.