function cambio(thePlayer, matchingDimension)
if isElementWithinMarker (thePlayer, MarkerAmarilo, matchingDimension) then
addPedClothes ( thePlayer, "tshirt2horiz", "tshirt2", 3 )
else
outputChatBox ("No se pudo poner la ropa", thePlayer, 255, 0, 0)
end
end
addEventHandler("onPlayerMarkerHit",getRootElement(),cambio)
function MarkerAmarilo()
marker = createMarker (-2522.07715, -657.68250, 146.90631,"cylinder",1.0,250,220,0,250, getRootElement() )
end
addEventHandler ( "onResourceStart", getRootElement(), MarkerAmarilo )
I create this script but dont work, who can help me
The script is for when a player touches the marker , change clothes.
Thanks