Skip to content

Conversation

@DaniGP17
Copy link
Contributor

Goal of this PR

Add a file builder for CPedFacialOverlays as suggested in this forum post: https://forum.cfx.re/t/addon-make-up-lipstick-brows-beards-etc/5224039

This allows you to add blemishes, facial hair, eyebrow, makeup, aging, etc. addons without replacing an existing one.

The default file used is update/update.rpf/common/data/effects/peds/facial_overlays.meta. You can use this as a base to create new facial overlays. Here is a test script to demonstrate a makeup addon.
FacialOverlay.zip
image

The code for this pull request was created by Disquse. I simply checked that it works and created a test script, but all the work is theirs. If for any reason they want me to delete this PR, I have no problem doing so.

How is this PR achieving the goal

Declaring the LoadFromStructure function to parse the .meta file and read its data. A custom file mounter has been created, and the LoadDataFile and UnloadDataFile functions insert it into the game's overlay store.

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 3258
Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Aug 24, 2025
@prikolium-cfx prikolium-cfx self-requested a review September 12, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant