Jump to content

roaddog

Members
  • Posts

    346
  • Joined

  • Last visited

  • Days Won

    1

roaddog last won the day on September 6 2022

roaddog had the most liked content!

2 Followers

About roaddog

  • Birthday 25/04/1997

Details

  • Gang
    Dark side
  • Location
    Big appartment.
  • Occupation
    Literature student.
  • Interests
    I like my local server! indeed.

Recent Profile Visitors

2,970 profile views

roaddog's Achievements

Fool

Fool (23/54)

19

Reputation

  1. Idk if this what you want but store it in a table and then use https://wiki.multitheftauto.com/wiki/ToJSON
  2. roaddog

    The last reply

    hahahahhahaha yeah right
  3. you need to create a function to update it. like update the thing when you open the panel for example yeah you dont need to use guiGridListClear if the row always 2 just update the value of that
  4. okayy show me how you add the kill to the table it should be check topKillers[key][1] == name and then topKillers[key][2] = topKillers[key][2] + 1
  5. how your table looks like? tkill = {{"aa", 10}, {"bb", 2}, {"cc", 5}} -- Sort the table from high to low table.sort(tkill, function (a, b) return a[2] > b[2] end) for i, v in pairs(tkill) do print(v[1], v[2]) end -- This will result: -- aa, 10 -- cc, 5 -- bb, 2 function getKeyFromVal(name) if (not name) then return false end for i, v in pairs(tkill) do if (v[1] == name) then return i end end return false end function addkill(name, num) if (not name or not num) then return false end local key = getKeyFromVal(name) tkill[key][2] = tkill[key][2] + num end -- we add 6 kill to the "bb" addkill("bb", 6) -- sort again table.sort(tkill, function (a, b) return a[2] > b[2] end) for i, v in pairs(tkill) do print(v[1], v[2]) end --This will result -- aa, 10 -- bb, 8 -- cc, 5
  6. then you have to call table.sort everytime you add new data
  7. addEventHandler("onMarkerHit", meslekbitis_marker2, meslekbitis) move ^ line to function ikincimeslek(oyuncu) if oyuncu then if isElement(kargo_arac[oyuncu]) then destroyElement(meslekbitis_marker) destroyElement(kargobitis_blips) outputChatBox("#9ACD32[Kargo Mesleği]: #FFFFFFKargoların indirililiyor, ücretiniz almak için kargo dağıtım merkezine geri dön.",oyuncu,255,255,255,true) meslekbitis_marker2 = createMarker(-62.74648, -1111.28027, 1.07812, "checkpoint", 2.5 , 255, 185, 15) addEventHandler("onMarkerHit", meslekbitis_marker2, meslekbitis) end end end
  8. again we cant really assume your file that causing this problem. what resource is that? im not a wizard
  9. bro I’m not wizard but I can sense that you done something (destroyElement probably) upon onVehicleExit or onPlayerVehicleExit trigger. Post the code
×
×
  • Create New...