hi all, i have a problem my code, i just want that a function get triggered when a map resourse start
here is what i have tried
local myMapElement = getElementByIndex("resource",10) --My map resource
local qq =getElementID(myMapElement)
outputChatBox(qq) --show de ID of my map to verify
addEventHandler("onResourceStart", ee, do_something)
but it doesnt work
i want to do specially this
addEventHandler("onResourceStart", myMapElement, do_something)
how can i give my Map as element to that event?
there is a way to doit without have this code in my map resource?