Jump to content

fatboy950412

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fatboy950412's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Is there a way to move this text?
  2. function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) local outline = (scale or 1) * (1.333333333333334 * (outline or 1)) dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left - outline, top, right - outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left + outline, top, right + outline, bottom, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top - outline, right, bottom - outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) dxDrawText (text:gsub("#%x%x%x%x%x%x", ""), left, top + outline, right, bottom + outline, tocolor (0, 0, 0, 225), scale, font, alignX, alignY, clip, wordBreak, postGUI, false, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) end function fadedText() dxDrawBorderedText(2.5, "Lorem ipsum dolor sit amet", 0, 0, screenX, screenY - (screenY * 0.9), tocolor(176,192,222,255), 2, "pricedown", "center", "center", true, true, true, true, true) dxDrawBorderedText(2.5, "Lorem ipsum dolor sit amet.", 0, 0, screenX, screenY - (screenY * 0.84), tocolor(135,206,250,255), 1, Roboto, "center", "center", true, true, true, true, true) setTimer(function() removeEventHandler("onClientRender", root, fadedText) end, 3000, 1) end function fadedHit( theElement, matchingDimension ) if ( theElement == localPlayer ) then addEventHandler("onClientRender", root, fadedText) end end addEventHandler("onClientColShapeHit", groveCol, fadedHit) // im trying to fade this script but i cant can someone help me pls
  3. nah im not saying this can you convert this module to db?
  4. hi im trying to convert dbconnect this text and i doing correctly but it isnt working here is the code; function getRandomVehicleFromCarshop(shopID) if shopID and tonumber(shopID) then local preparedQuery = "SELECT * FROM `vehicles_shop` WHERE `enabled` = '1' AND `spawnto`='"..exports.global:toSQL(shopID).."' " local q1 = mysql:query(preparedQuery) if not q1 then outputDebugString("Database error / getRandomVehicleFromCarshop / carshop-sytem / s_shop.lua") return false end local tempTable = {} while true do local row = mysql:fetch_assoc(q1) if not row then break end table.insert(tempTable, row ) end mysql:free_result(q1) if #tempTable > 0 then local ran = math.random( 1, #tempTable ) return tempTable[ran] else return false end end end
  5. hello i changed script like; When I take a screenshot, it prints the time and date correctly, but in the next screenshots, it continues to write the date and time in the chat that I took the first screenshot. local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second local day = getRealTime().monthday local month = getRealTime().month+1 local year = getRealTime().year+1900 addEventHandler("onClientKey", root, function(button,press) if press and (button == getKeyBoundToCommand("screenshot")) then outputChatBox("You have taken a screenshot ! mta-screen_"..year.."-"..month.."-"..day.."_"..hour.."-"..minute.."-"..second..".png", 255, 0, 0, true) end end)
  6. hi there, i just want when a player take a screenshot a text appear like "You're taked screenshot" thx very m ch
×
×
  • Create New...