addEventHandler("onClientResourceStart",getRootElement(),function(res)
if res == getThisResource() then
for k,v in pairs(markPostion) do
local x,y,z,interior,dimension,type = unpack(v);
local r,g,b = exports.NL_Core:getServerColor("servercolor",false);
local mark = createMarker(x,y,z-2,"cylinder",1.5,r,g,b,130);
setElementInterior(mark,interior or 0);
setElementDimension(mark,dimension or 0);
setElementData(mark,"shop.type",type);
setElementData(mark,"shop.id",k);
addEventHandler("onClientMarkerHit", mark, msg1)
addEventHandler("onClientMarkerLeave", mark, msg2)
end
end
end);
function msg1(hitPlayer, matchingDimension)
togMESG ()
end
function msg2 (leavingPlayer, matchingDimension)
togMESG ()
end
------------------------------------------------------
How Can I use getElementData at msg1 or msg2