ListBlips[k] looks ok
addBlips( ListBlips[k] ) should be ok i guess
in the function addBlips, im trying to get the last var called “showonmap” … which should be “true”
chatMessage is always showonmap = false.
i have to admit i did not quite master what the “in pairs” mean… even after small research. k will increment by 1 to “pass” each element in my ListBlips local variable/“table”. i guess “v” does mean the variable number. no clue about the “in pairs” unfortunately. but… when i triggerevent chatmessage with ListBlips[k] … on each step its the right answer… each of my blip listed above
oh wait… i think i just found what you mean… lets go try… the values in the fonction addBlips is not good.
Also… a little bit unrelevant but you start at [0] … but i taught for k,v … the first try was a [1] …
EDIT: its working perfectly as i needed it to be… thank you very much @Briglair
you are right… now that it work as i wanted… i was wondering if it could be optimized… lets try
i also noticed my showonmap is working but if i set the blip scalesize to 1 (and not to 1.0 which work) it accidentally does the same job with way less control… another way to make the blips disappear but with shaving an extra variable off… lol
I did tried the first time to use addBlips(v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8]) … but I must had mistakes elsewhere and scrapped that way
addBlips(v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8]) did worked…
What I have learned today 11h later… the name of my table is case sensitive… Listblips and ListBlips are a world of difference… i change my code for hours and hours … AAAARRRRRGGH GOD WHY??
well im off to bed with a working script… i earn the right!