[Release] + [Tutorial] Add new tattoos and overlays (Example Included)

Hi there, mates!
Let me introduse my researches for today. Here and now we will ad new branded tattoo (with my project name, of course :slight_smile: )

DOWNLOAD EXAMPLES TO EXPLORE

STRAIGHT DOWNLOAD LINK (13 KB)
Same resource, but with bage strip sample (56 KB)


How to add own tattoos?

Simple, mates!
You need graphic editor (i use Photoshop) and game engine browser (OpenIV).
First step is open new_overlays.xml and add just like in example:

<Item>
      <uvPos x="-0.278000" y="0.490000" />
      <scale x="0.147000" y="0.180000" />
      <rotation value="0.000000" />
      <nameHash>new_tattoo_01_M</nameHash>
      <txdHash>new_tattoo_01</txdHash>
      <txtHash>new_tattoo_01</txtHash>
      <zone>ZONE_RIGHT_ARM</zone>
      <type>TYPE_TATTOO</type>
      <faction>FM</faction>
      <garment>All</garment>
      <gender>GENDER_MALE</gender>
      <award />
      <awardLevel />
    </Item>

Explanaton:

  • uvPos - position of tattoo with offset from ped body.
  • scale - sacling of tattoo
  • rotation - rotation obviously
  • nameHash - this is the hash name (you need it to apply tattoo on ped)
  • txdHash/txtHash - Have to be the same as your nameHash (but without _M / _F)
  • zone - zone can be different

ZONE_TORSO
ZONE_HEAD
ZONE_LEFT_ARM
ZONE_RIGHT_ARM
ZONE_LEFT_LEG
ZONE_RIGHT_LEG
ZONE_UNKNOWN
ZONE_NONE

  • type/faction/garment - do not touch
  • gender - can be GENDER_MALE / GENDER_FEMALE or GENDER_DONTCARE

Next, open shop_tattoo.meta and add this for each tattoo (do not know if it necessary, but i add this):

<Item>
	 <id value="92610"/>
	 <cost value="50"/>
	 <textLabel>NEW_TAT_001</textLabel>
	 <collection>new_overlays</collection>
	 <preset>new_tattoo_01_M</preset>
	 <zone>PDZ_RIGHT_ARM</zone>
	 <eFacing>TATTOO_RIGHT</eFacing>
	 <updateGroup>ARM_RIGHT_LOWER_SLEEVE</updateGroup>
	 <eFaction>TATTOO_MP_FM</eFaction>
	 <lockHash>CUSTOM_TATTOOS</lockHash>
</Item>

Explanaton:

  • id - i think this is shop id
  • cost - same, for shop
  • textLabel - label for shop
  • collection - your collection name
  • preset - nameHash from new_overlays.xml
  • zone - same as in new_overlays.xml
  • eFacing - unknown for me now
  • updateGroup - unknown for me now
  • eFaction - unknown for me now
  • lockHash - hash for unlocks used by R* (optional param)

Next step - create your new tattoo in graphic editor, add in .ytd (ATTENTION! .ytd file HAVE to be the same name like you type in txdHash/txtHash in new_overlays.xml) file, put in stream folder. And enjoy!

Screenshots

PNG sample:

Thats how it is looks like:

How to apply this tattoo?

Usage:

ApplyPedOverlay(PlayerPedId(), GetHashKey("new_overlays"), GetHashKey("new_tattoo_01_M"))

  • new_overlays - is our new overlay library
  • new_tattoo_01_M - is our tattoo name from our files (nameHash from new_overlays.xml and preset from shop_tattoo.meta)

ALSO!

No credits required, use it however you want. Also you can call this resource yours.
Sharing is caring. Traditionall, sorry for my mr.Balkan engish.

Admins / Moderators, please, fix my grammar errors. This language is complicated for me.

Do not forget about unofficial wiki: HERE (it is helps a lot, as i can see from comments)

My project website: HERE
My server: HERE the advert on this forum
My Skype: harver-trane for questions (remember, i do not speak english well, as you can see :slight_smile: )

18 Likes

Very cool! Thanks for sharing :slight_smile:

Very cool. Awesome work.

Also, you can do tricks like that (i hope our cops will love it):

Stripe badge like this:

In game:

Download sample resource:

Download link (look at the topic start): HERE

Information and how to add examle

in new_overlays.xml - add

<Item>
      <uvPos x="0.865000" y="0.770000" />
      <scale x="0.055000" y="0.055000" />
      <rotation value="0.000000" />
      <nameHash>YOUR_bage_M</nameHash>
      <txdHash>YOUR_bage</txdHash>
      <txtHash>YOUR_bage</txtHash>
      <zone>ZONE_TORSO</zone>
      <type>TYPE_BADGE</type>
      <faction>FM</faction>
      <garment>All</garment>
      <gender>GENDER_MALE</gender>
      <award />
      <awardLevel />
    </Item>
	<Item>
      <uvPos x="0.865000" y="0.770000" />
      <scale x="0.055000" y="0.055000" />
      <rotation value="0.000000" />
      <nameHash>YOUR_bage_F</nameHash>
      <txdHash>YOUR_bage</txdHash>
      <txtHash>YOUR_bage</txtHash>
      <zone>ZONE_TORSO</zone>
      <type>TYPE_BADGE</type>
      <faction>FM</faction>
      <garment>All</garment>
      <gender>GENDER_FEMALE</gender>
      <award />
      <awardLevel />
    </Item>

and in shop_tattoo.meta add:

<Item>
	  <id value="0"/>
	  <cost value="0"/>
	  <textLabel />
	  <collection>new_overlays</collection>
	  <preset>YOUR_bage_M</preset> <!-- SAME AS IN PREVIOUS FILE in row nameHash!!!  -->
	  <zone>PDZ_TORSO</zone>
	  <eFacing>TATTOO_FRONT</eFacing>
	  <updateGroup>rank</updateGroup>
	  <eFaction>TATTOO_MP_FM</eFaction>
	  <lockHash />
</Item>
<Item>
	  <id value="0"/>
	  <cost value="0"/>
	  <textLabel />
	  <collection>new_overlays</collection>
	  <preset>YOUR_bage_F</preset> <!-- SAME AS IN PREVIOUS FILE in row nameHash!!!  -->
	  <zone>PDZ_TORSO</zone>
	  <eFacing>TATTOO_FRONT</eFacing>
	  <updateGroup>rank</updateGroup>
	  <eFaction>TATTOO_MP_FM_F</eFaction>
	  <lockHash />
</Item>

and add your badge .ytd in stream folder

Important!

This badge can be implemented to native cop, such as s_m_y_cop_01

Screenshot:

But police bage is over my stripe…
It is means you have to correct uvPos x and y in new_overlays.xml manually for each custom model (these coords in example is for MP models)

P.S.

Maybe you can do rank badges like Sheriff, Sergeant, Officer of detective (idk what ranks in U.S. Police).
Or you can apply personal badges for your clan (unit) members.
I do not like this cop things, couse i got previous conviction IRL, but i see you guys like it. So take and use with pleasure.

2 Likes

badges :gb: :us:

2 Likes

I was wondering where you found the meta for the tattoo and overlays?
I am trying to do something similar with clothing items but I do not know where to look to get the template for the meta.

i gues you should start diging from pedalternatevariations.meta, mp_f_freemode_01_luxe_shop.meta and etc.

Thanks! I think I found some useful information in the mp_m_freemode_01_luxe_shop meta for addon components and props

@Cosmo, do not forget to make a topic, when you know something. It is interesting info.

Definitely. I’ll let you know if I get it working

Hi!

Did you found a way to do the same with player part? like shirts, pants, hats…

Thanks

Hi ! Impossible for me to put 2 tattoo only the first work. Can i drop the files here to get help?

Hello, I tried several times but I can not do it. There is not a video to see each step? I despair :frowning:

It works but when you apply the tattoo you get a black badge as shown in the picture: https://prnt.sc/j9wp81 Anyone know how to remove it?

This is absolutely magical, and I’m digging into it to add badges to our biker cuts in-game.
“President”, “Road Captain”, “Prospect”… It’s gonna be great.

I’d love to have a look at the example resource with the badges included, but that file seems to be gone now.
Any chance I can get my filthy mittens on it?

If you have a skinchanger change the decal 1&2 back to 0

the file where do you need to put it in ?

Hi, Is it possible to pack multiple images into a YTD file? and then fetch each image inside the ytd by its name to apply to the ped. Example My tribal.ytd contains images tribal_leftarm, tribal_rightarm, tribal_topback etc. The

txdHash tribal /txdHash

would look like this, I tried call each image by simply changing the name hash block to match

nameHash tribal_topback /nameHash

But i got no luck, does each image really have to be packed into its own YTD, i find this very bloated and not too efficient.

If its possible to have multiple images packed inside the YTD and then fetched to be applied can please let me know where im going wrong, thanks

Sorry but exactly how do we download it? There are a bunch of russian ads and nothing else on the links

Link of the donwload isnt working.

3 Likes