Dragon02 Posted August 3, 2022 Share Posted August 3, 2022 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
Vampire Posted August 3, 2022 Share Posted August 3, 2022 Hello @Dragon02 and welcome! I'm moving this to the Scripting section as it's more suitable so you can get better assistance. 1 Link to comment
#\_oskar_/# Posted August 4, 2022 Share Posted August 4, 2022 I don't understand what do you want to do? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now