[Help] Draw model image


#1

Hi, I was wondering if there is a way to access the sprite showing front face of the currently used model (shown in the linked picture).


I would love to be able to redraw this sprite manually via some native.


#2

Take a look at https://runtime.fivem.net/doc/reference.html#_0x4EBB7E87AA0DBED4 and see what you can come up with.
I personally haven’t found any direct way of interacting or changing it other than that native.


#3

Im not sure if you can change it though.

But the image you see is a so called “headsot/mugshot” and there are couple of natives that create these images. Im not sure on the exact working. The image you see is not driven by FiveM but by gta 5 code.

Natives:
https://runtime.fivem.net/doc/reference.html#_0x4462658788425076
https://runtime.fivem.net/doc/reference.html#_0x96B1361D9B24C2FF
https://runtime.fivem.net/doc/reference.html#_0x7085228842B13A67
https://runtime.fivem.net/doc/reference.html#_0xDB4EACD4AD0A5D6B

More resources:


#4

This is exactly what I’ve been looking for, from the attached post it look like it will work in my script :slight_smile: