addEvent("displayclothes",true)
addEventHandler("displayclothes",getRootElement(),
function(style)
triggerClientEvent(client,"displayClothOn",client,clothes,style)
end)
local clothtable = {}
addEventHandler("onMarkerHit",getRootElement(),
function(hitElement)
if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then
if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then
if getPlayerTeam ( hitElement ) == getTeamFromName ( "Police" ) or getPlayerTeam ( hitElement ) == getTeamFromName ( "Medic" ) then return end
triggerClientEvent(hitElement,"showDemClothGui",hitElement)
end
end
end)
إلي ضفته سطر 13