- Documentation
- Server functions
- addPedTattooImage
Function
addPedTattooImage
Makes a tattoo from your own PNG image in slot 1-9. The file must be listed in meta.xml as <file> (at most 1 MB and 1024x1024), and ":resource/file.png" takes the file from another resource. Dark pixels are ink, light and transparent ones are skin. Every player sees it.
Syntax
bool addPedTattooImage(ped thePed, int slot, string filePath)Arguments
thePedped- The ped.
slotint- Slot 1-9.
filePathstring- The PNG file.
Returns
true on success (a file error goes to the console).
Example
addPedTattooImage(player, 5, "tatuaze/logo.png")
<meta>
<script src="server.lua" type="server" />
<file src="tatuaze/logo.png" />
</meta>