what hell does that thing want from me?! i tried every thing
http://prntscr.com/8468ia
addEventHandler("hats",root,function()
local texture, model = getPedClothes ( source, 16 )
if ( texture and model ) then
if texture == "bandred" and model == "bandana" then
addPedClothes ( source, "bandblue", "bandana", 16 )
end
if texture == "bandblue" and model == "bandana" then
addPedClothes ( source, "bandgang", "bandana", 16 )
end
if texture == "bandgang" and model == "bandana" then
addPedClothes ( source, "bandblack", "bandana", 16 )
end
if texture == "bandblack" and model == "bandana" then
addPedClothes ( source, "bandred2", "bandknots", 16 )
end
if texture == "bandred2" and model == "bandknots" then
addPedClothes ( source, "bandblue2", "bandknots", 16 )
end
if texture == "bandblue2" and model == "bandknots" then
addPedClothes ( source, "bandblack2", "bandknots", 16 )
end
if texture == "bandblack2" and model == "bandknots" then
addPedClothes ( source, "bandgang2", "bandknots", 16 )
end
if texture == "bandgang2" and model == "bandknots" then
addPedClothes ( source, "capknitgrn", "capknit", 16 )
end
if texture == "capknitgrn" and model == "capknit" then
addPedClothes ( source, "captruck", "captruck", 16 )
end
if texture == "captruck" and model == "captruck" then
addPedClothes ( source, "cowboy", "cowboy", 16 )
end
if texture == "cowboy" and model == "cowboy" then
addPedClothes ( source, "hattiger", "cowboy", 16 )
end
if texture == "hattiger" and model == "cowboy" then
addPedClothes ( source, "helmet", "helmet", 16 )
end
if texture == "helmet" and model == "helmet" then
addPedClothes ( source, "moto", "moto", 16 )
end
if texture == "moto" and model == "moto" then
addPedClothes ( source, "boxingcap", "boxingcap", 16 )
end
if texture == "boxingcap" and model == "boxingcap" then
addPedClothes ( source, "capgang", "cap", 16 )
end
if texture == "capgang" and model == "cap" then
addPedClothes ( source, "capgangside", "capside", 16 )
end
if texture == "capgangside" and model == "capside" then
addPedClothes ( source, "capgangover", "capovereye", 16 )
end
if texture == "capgangover" and model == "capovereye" then
addPedClothes ( source, "capgangup", "caprimup", 16 )
end
if texture == "capgangup" and model == "caprimup" then
addPedClothes ( source, "bikerhelmet", "bikerhelmet", 16 )
end
if texture == "bikerhelmet" and model == "bikerhelmet" then
addPedClothes ( source, "capred", "cap", 16 )
end
if texture == "capred" and model == "cap" then
addPedClothes ( source, "capredback", "capback", 16 )
end
if texture == "capredback" and model == "capback" then
addPedClothes ( source, "capredside", "capside", 16 )
end
if texture == "capredside" and model == "capside" then
addPedClothes ( source, "capredover", "capovereye", 16 )
end
if texture == "capredover" and model == "capovereye" then
addPedClothes ( source, "capredup", "caprimup", 16 )
end
if texture == "capredup" and model == "caprimup" then
addPedClothes ( source, "capblue", "cap", 16 )
end
if texture == "capblue" and model == "cap" then
addPedClothes ( source, "capblueback", "capback", 16 )
end
if texture == "capblueback" and model == "capback" then
addPedClothes ( source, "capblueside", "capside", 16 )
end
if texture == "capblueside" and model == "capside" then
addPedClothes ( source, "capblueover", "capovereye", 16 )
end
if texture == "capblueover" and model == "capovereye" then
addPedClothes ( source, "capblueup", "caprimup", 16 )
end
if texture == "capblueup" and model == "caprimup" then
addPedClothes ( source, "skullyblk", "skullycap", 16 )
end
if texture == "skullyblk" and model == "skullycap" then
addPedClothes ( source, "skullygrn", "skullycap", 16 )
end
if texture == "skullygrn" and model == "skullycap" then
addPedClothes ( source, "hatmancblk", "hatmanc", 16 )
end
if texture == "hatmancblk" and model == "hatmanc" then
addPedClothes ( source, "hatmancplaid", "hatmanc", 16 )
end
if texture == "hatmancplaid" and model == "hatmanc" then
addPedClothes ( source, "capzip", "cap", 16 )
end
if texture == "capzip" and model == "cap" then
addPedClothes ( source, "capzipback", "capback", 16 )
end
if texture == "capzipback" and model == "capback" then
addPedClothes ( source, "capzipside", "capside", 16 )
end
if texture == "capzipside" and model == "capside" then
addPedClothes ( source, "capzipover", "capovereye", 16 )
end
if texture == "capzipover" and model == "capovereye" then
addPedClothes ( source, "capzipup", "caprimup", 16 )
end
if texture == "capzipup" and model == "caprimup" then
addPedClothes ( source, "beretred", "beret", 16 )
end
if texture == "beretred" and model == "beret" then
addPedClothes ( source, "beretblk", "beret", 16 )
end
if texture == "beretblk" and model == "beret" then
addPedClothes ( source, "capblk", "cap", 16 )
end
if texture == "capblk" and model == "cap" then
addPedClothes ( source, "capblkback", "capback", 16 )
end
if texture == "capblkback" and model == "capback" then
addPedClothes ( source, "capblkside", "capside", 16 )
end
if texture == "capblkside" and model == "capside" then
addPedClothes ( source, "capblkup", "caprimup", 16 )
end
if texture == "capblkup" and model == "caprimup" then
addPedClothes ( source, "trilbydrk", "trilby", 16 )
end
if texture == "trilbydrk" and model == "trilby" then
addPedClothes ( source, "trilbylght", "trilby", 16 )
end
if texture == "trilbylght" and model == "trilby" then
addPedClothes ( source, "bowler", "bowler", 16 )
end
if texture == "bowler" and model == "bowler" then
addPedClothes ( source, "bowlerred", "bowler", 16 )
end
if texture == "bowlerred" and model == "bowler" then
addPedClothes ( source, "bowlerblue", "bowler", 16 )
end
if texture == "bowlerblue" and model == "bowler" then
addPedClothes ( source, "bowleryellow", "bowler", 16 )
end
if texture == "bowleryellow" and model == "bowler" then
addPedClothes ( source, "boater", "boater", 16 )
end
if texture == "boater" and model == "boater" then
addPedClothes ( source, "bowlergang", "bowler", 16 )
end
if texture == "bowlergang" and model == "bowler" then
addPedClothes ( source, "boaterblk", "boater", 16 )
end
if texture == "boaterblk" and model == "boater" then
removePedClothes ( source, 16 )
end
end
if not ( texture and model ) then
addPedClothes ( source, "bandred", "bandana", 16 )
end
end)
end )