Jump to content

Desaster

Members
  • Posts

    243
  • Joined

  • Last visited

Everything posted by Desaster

  1. hi, I have the account name of a player how to get the player element starting from that account name
  2. Desaster

    scrollpane

    well first error was that when I sorted the table it order me the kills from the lowest value to the highest (0, 1, 2) and I need from the highest to the lowest ( 500, 200, 10, 1, 0) also it shows me for every gang the number 0 then for every gang the number 1 ( that numbers are the kills of just one gang ) well what I made is a bit shitty here is my code tell me what I've made false function createKills(scrollPane, theTable) local stuffCount = 1 local kill = {} local test = {} local test1 = {} for k,v in ipairs(theTable) do table.insert(test, v[ "kills" ]) table.insert(test1, v[ "name" ]) end table.sort(test) for k, v in ipairs(test) do for i, h in ipairs(test1) do table.insert(kill, guiCreateLabel(0, stuffCount*19, 287, 17, tostring ( v ).." - "..tostring( h ), false, scrollPane)) stuffCount = stuffCount + 1 for k, v in ipairs(getElementsByType("gui-label", resourceRoot)) do if (getElementParent(v) == scrollPane) then guiSetFont(v, "default-bold-small") end end end end return kill end ps : TheTable, and scrollPane are defined
  3. Desaster

    scrollpane

    so I have in my scroll pane gangs and gang kills and I want that the gang with the most kills is the first one in the scroll pane how to do that ?
  4. Desaster

    scrollpane

    hmmm how to remove that scrollpane from the scroll bar ?
  5. Desaster

    scrollpane

    heyo I want to create a scroll pane filled by players on the screen how to fill it ?
  6. hi I found this func getPedWalkingStyle but it's disabled hmmm so I wanted to ask how to get the walking style of a ped
  7. ik but I mean how to get a mta blip and replace it with a new one with keeping the blip made by mta with createBlip you understand ? not to create a fully new one
  8. as the title say how to replace gta blips with new ones ?
  9. Desaster

    question

    I need to do it belive me I can't find an other way anyways my server crashed just sometimes when i restarted the script and just when I had the timer each 100 msec now I changed it to 1 sec and everything going on well but as I sayed was just a question
  10. Desaster

    question

    I've set a timer that makes me I approx 15 query every 1 sec I wanted to ask you if it's make lag if I make many timers and if it makes a difference or not if I make the timer every 100 msec or every second and is there a query limit in the seconds because sometimes my server crahed and told me Notice : 350000 qery in the last 10 second thnx
  11. Desaster

    health bar

    how to remove original mta health bar but keep the player tag ?
  12. post a bit more of the script
  13. hi, is it possible to set a MIN number in a table) if I set it or not under that number that the limit
  14. My problem is that that command gets me the position I think after the car got destroyed so I get an error that the element don't exist anyways it is possible to cancel the explosion and to do it manually with a func ? Or is it possible if the car got damaged by a specefic gun like rocket to cancel the Event ? Or if I get the moment before the explosion to get the position in it Anyways thnx for answer I hope you understand me
  15. hey , how I get the position of a car when it explose ? I don't mean if it's health is 1 or a bit more I mean when I shoot on it a rocket loucher how I can get it's position or how I can cancel that ?
  16. hey why your making your blips like that you can use a table like this blips = { {x, y, z}, {x, y, z} } function la() for i,v in ipairs(blips) do bl = createBlip(v[1], v[2], v[3], 56) setElementDimension(bl, 11000 ) setBlipVisibleDistance(bl, 1500 ) end end NOT TESTED but must work and it's really better than yours in that table where x, y, z put your positions in numbers
  17. Desaster

    water check

    hi, how to check if s.o is in water ?
  18. I am really sry men I was just angry lol nvm
  19. ok it don't seem your a really nice scipter anyways I found the problem thnx and just for info max health is 100 not 1000
  20. ik but I don't know whats the problem first I got the number from a table setElementHealth(vehicle, tonumber(theCar[i].Health)) the I did this setElementHealth(vehicle, 99) and still not working
×
×
  • Create New...