-- do lots of stuff here
local event = addEvent(--whatever you want to add in here)
setPlayerStorageValue(cid,storageid,event)
--do stuff here
stopEvent(cid,getPlayerStorageValue(cid,storageid))
but what if 3 players do whatever fires the addevent just a second after the other then the global storage would store the event of the last player not all the players.Ye, use global storage ;p
In some cases, you may only need a single event running.but what if 3 players do whatever fires the addevent just a second after the other then the global storage would store the event of the last player not all the players.