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 )
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
orGENDER_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 fromshop_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 )