Jump to content

RocKyz

Members
  • Content Count

    1,860
  • Joined

  • Days Won

    8

RocKyz last won the day on May 28 2019

RocKyz had the most liked content!

Community Reputation

315 Superstar

About RocKyz

  • Rank
    Jacker

Recent Profile Visitors

5,501 profile views
  1. RocKyz

    Scroll label

    Then what about that function guiLabelGetTextHeight(label) local text = guiGetText(label) local height = guiLabelGetFontHeight(label) return ((text:len()-text:gsub("\n", ""):len())*height)+height end I haven't test it tho
  2. RocKyz

    Scroll label

    That might help you guiLabelGetFontHeight
  3. استخدم https://wiki.multitheftauto.com/wiki/Matrix local forwardPosition = player.matrix.position + player.matrix.forward * 2
  4. For better performance, create an element and set it as the parent for the markers instead of adding an event for every single marker. local markersParent = createElement("markersParent") local t = { {2450, -1670, 12}, {2455, -1670, 12}, {2460, -1670, 12} } addEventHandler("onResourceStart", resourceRoot, function() for i = 1, #t do local v = t[i] local marker = createMarker(v[1], v[2], v[3], "cylinder", 2.5, 255, 255, 255) setElementParent(marker, markersParent) end end) addEventHandler("onMarkerHit", markersParent, function(hitElement) if getElem
  5. You're getting this error because you've missed a bracket on the end of the db string: CREATE TABLE IF NOT EXISTS `vehicles` (id INT, model INT, x FLOAT, y FLOAT, z FLOAT)
  6. I don't know what are you trying to do, but anyways try to replace the db string with this: CREATE TABLE IF NOT EXISTS `vehicles` (id INT, model INT, x FLOAT, y FLOAT, z FLOAT)
  7. الخطأ غالبا بسبب انك مررت الأرقمنتات في التايمر اخر سطر
  8. تقدر تختصر كل هذا table.insert(table, 1, value)
  9. وين مشكلتك بالضبط واطرح جدول players
  10. كودك مابيسوي اي فرق لان التيبل موجود اصلا وانت حاط IF NOT EXISTS اذا يبي يعدل على التيبل يقدر يمسحه وينشئه مرة ثانية مع الاضافات او ببساطة يستخدم ALTER TABLE
  11. جرب كذا local TiempoPr = getTickCount() addEvent("onPlayerSpray", true) addEventHandler("onPlayerSpray", root, function(rockets) local tick = getTickCount() if (tick - TiempoPr > 5000) then outputChatBox("Player #FFFFFF"..getPlayerName(source).." #FFFFFFhas shot #aacccc["..rockets.." #ffffffrockets in #ffffff"..math.floor((tick - TiempoPr) / 1000).." #ffffffseconds]", root, 255, 255, 255, true) TiempoPr = tick end end)
  12. حاول تعدل اسلوبك اذا تبي احد يساعدك المهم, سويت لك الكود على حسب الي فهمته منك ما جربته local tick = getTickCount() local from, to = test.moveX, 1; addEventHandler("onClientRender", root, function() local currentTick = getTickCount() local progress = (currentTick - tick) / 2000 local position = interpolateBetween(from, 0, 0, to, 0, 0, progress, "Linear") dxDrawText("FOR TESTING A SOMETHING ALPHA 1.0", sX*0.35-position, sY*0.15, 250, 250, tocolor(255, 255, 255, 255), 2.00, "default-build", "left", "center", false) if progress >= 1 then tick = current
  13. Could you explain what is the problem ?
  14. local multiline = [[... multiline string ... ... ]]
  15. Here you go: characters = {"a", "b", "c"} function test(username) if string.find(username, "["..table.concat(characters, "").."]") then end end
×
×
  • Create New...