Jump to content

How Can i get the Data of hitted Marker


Dragon02

Recommended Posts

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

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...