I'm using the datas of gang no of team
ex:
vehicles_blips = {}
root = getRootElement()
function blip ()
pla = getElementsByType ( "player" )
for k,x in ipairs(pla) do
if ( getElementData (x, "gang" ) == "123" )then
blip = createBlipAttachedTo(MiAuto,2,2,255,55,0,255)
vehicles_blips[MiAuto] = blip
setElementVisibleTo (blip,x, true )
end
end
end
setTimer(blip,3000,1)
function destroyb(player)
play = getElementsByType ( "player" )
for k,z in ipairs(play) do
if ( getElementData (z, "gang" ) == "None" )then
local blip = vehicles_blips[MiAuto]
destroyElement(blip)
vehicles_blips[MiAuto] = nil
end
end
end
setTimer(destroyb,3000,0)
it's not deleted when leaving the gang :c and try everytring helpme pls
not work