- Documentation
- Server functions
- addPedTattoo
Function
addPedTattoo
Gives a ped a San Andreas tattoo in one of nine body spots (slots 1-9: upper arms, forearms, back, chest, stomach, lower back). Every player sees it.
Syntax
bool addPedTattoo(ped thePed, int slot, string tattooName [, string texture])Arguments
thePedped- The ped.
slotint- Slot 1-9 (
getTattooPlaceName). tattooNamestring- Tattoo name (model), e.g.
"4rip". texturestring, optional- Texture; the same as the name without it.
Returns
true on success.
Example
addPedTattoo(player, 1, "4rip")
addPedTattoo(player, 5, "8sa")
See also
removePedTattooRemoves the tattoo from slot 1-9.addPedTattooImageMakes a tattoo from your own PNG image in slot 1-9. The file must be listed inmeta.xmlas<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.getPedTattoosReturns a ped's tattoos: a slot ->{ name, texture, place }table (on the server alsoimagefor tattoos fromaddPedTattooImage).