Exporting current ped to PNG

Hey,

I am trying to render player ped on NUI. It seems the only option to render a player is via gamepaused and it cant appear above NUI. Is there any workaround for that? Exporting current ped to PNG (without any background behind it) can also work just didn’t manage to figure out how to do it. I will be using it to display the current player on an Inventory I am making.

would really love some help with this. i’m clueless.

someone?

anyoneee

I’m quite sure that is not possible, it is most likely to the way most other inventories do it either.

I don’t think this is possible… unless…

… looking for a workaround?

  • Use the screenshot-basic resource
  • Custom camera position in front of greenscreen wall and put the ped in front of it.
  • Take a screenshot
  • Crop it properly

We are already doing that but it means we’ll have to teleport the actual player to the green screen and not a cloned ped. Is there a way to take a screenshot without running it through a client?

No, you need an actual client to render an image.

And sadly the Rage Engine doesn’t allow for multiple cameras. At least as far as I know and noone has ever done such a thing, nor have I seen it being used in GTA itself.
(e.g. in the Unity Engine you could have a camera pointing to somewhere else and then get the screenshot from that camera without the player being able to see any of it)

The thing is, I am looking to update the ped every time a player changes his clothing.

For display in inventory, i think you need copy ped and show only for current player. then set camera is enough.

How do I go about displaying it over NUI I am pretty sure it is impossible

For copy, clone ped, don’t display on NUI, but it’ll be best way to do it, just hidden current ped, show cloneped, and fix it to your design. I remember i have put and example on cfx, let me find it and give you the link.

Take look around this topic.