Jump to content

Search the Community

Showing results for tags 'progressbar'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. O trabalho é ajudante de pedreiro, consiste em pegar o emprego, ir ao prédio em construção, pegar uma viga de ferro e entregar ao pedreiro e ganhar dinheiro. queria por uma barra de progresso ao entregar para o pedreiro sx local, sy = guiGetScreenSize () local storagePed2 = createPed (2, 827.73742675781, -1750.5489501953, 23.046875) setElementData (storagePed2, 'ped-> jobNPC', 2) setElementFrozen (storagePed2, true) setPedRotation (storagePed2, 0) setElementData (storagePed2, "visibleName", "Cleyton") setElementData (storagePed2, "nameEnabled", true, false) setElementData (storagePed2, "tagName", "Pedreiro") objList local = { {839.5947265625, -1730.1517333984, 14.0-0.70, 0, 0, 45}, } função createObj () para k, em ipairs (objList) do obj = createObject (2960, i [1], i [2], i [3] - 0,67, i [4], i [5], i [6]) marcador = createMarker (i [1], i [2], i [3] -1, "cilindro", 1, 65, 105, 225, 70) fim fim addEventHandler ('onClientResourceStart', getRootElement () , createObj) função startJob (botão, estado, xx, aa, xxx, aaa, zzz, clickedElement) se o botão == "esquerdo" e o estado == "inativo" e o local x, y, z = getElementPosition (localPlayer) local ex, ey , ez = getElementPosition (storagePed2) se getDistanceBetweenPoints3D (x, y, z, ex, ey, ez) <= 2 e clicar em Element e getElementModel (clickedElement) == 2 e getElementData (clickedElement, "ped-> jobNPC") == 2 então, se getElementData (localPlayer, "job-> haveObject") == true, então triggerServerEvent ('dinheiro', localPlayer) setElementData (localPlayer, "job-> haveObject", false) setPedAnimation (localPlayer, "bombardeiro", "bom_plant_crouch_out") setObjectScale (planta1,0.7) setTimer (destroyElement, 16000, 1, planta1) destroyElement (blip1) setTimer (função () setPedAnimation (localPlayer, false) toggleControl ('sprint', toggleControl ('run', true) toggleControl ('jump', true) toggleControl ('fogo', true) toggleControl ('andar ', é verdade) end, 700, 1) dobozLead () else outputChatBox ("# 4169E1 [Brasil PH]: # ffffff Você não pegou uma viga", 255.255.255, true) end end end if clickedElement e getElementModel (clickedElement) == 2960 local x, y, z = getElementPosition (localPlayer) local ex, ey, ez = getElementPosition (obj), se getElementData (localPlayer, "PH-> Emprego-> Empregado") == " Estocador "ou getElementData (localPlayer," char.factionID ") == 999 então getDistanceBetweenPoints3D (x, y, z, ex, ey, ez) <= 2 then --if (getElementData (localPlayer, 'job-> haveObject') ) == false) e (getElementData (localPlayer, 'caractere> inActiveJob') == false) e setPedAnimation (localPlayer, 'bomber', 'bom_plant_crouch_in') setElementData (localPlayer, 'caractere> inActiveJob', true) obj = clicadoElement setTimer (função () setPedAnimation (localPlayer, false) setElementData (localPlayer, 'trabalho-> haveObject', true) setElementData (localPlayer, 'caracter-> inActiveJob' , false) outputChatBox ("# 4169E1 [Brasil PH]: #ffffffEntregue a viga ao pedreiro!", 255, 255, 255, true) triggerServerEvent ('neFuss',localPlayer) local poziciod = Vector3 (getElementPosition (localPlayer)) dobozKezbe = createObject (2960, poziciod.x, poziciod.y, poziciod.z) exporta.bone_attach : attachElementToBone (dobozKezbe, localPlayer, 12, 0,17, 0,25, 0,18, -99, 0, -20) setObjectScale (dobozKezbe) setPedAnimation (localPlayer, "CARRY", "crry_prtial", 4.1, verdadeiro, verdadeiro, verdadeiro) attachElements (dobozKezbe, localPlayer, 0, 0.5, 0) setElementCollisionsEnabled (dobozKezbe, false) end, 700,1) - else --outputChatBox ("Você já pegou a viga", 255.255.255, verdade) - end else outputChatBox ("# 4169E1 [Brasil PH]: # ffffff Você está muito longe", 255,255,255, true) end else outputChatBox ("# 4169E1 [Brasil PH]: #ffffffPegue o emprego na administração", 255,255,255, true) end end fim fim fim addEventHandler ("onClientClick", getRootElement (), startJob) função dobozLead () destroyElement (dobozKezbe) end addEvent ("doboz", true) addEventHandler ("doboz", root, dobozLead) Função Caixa de entrada (dx, dy, Dsz, MS, eX, EY) se (eX> = dX e eX <= dX + Dsz e Ey> = dY e EY <= dY + DM), em Seguida, retorne verdadeiro senão falsa retorne fim fim função isCursorInRectangle (x, y, w, h) é isCursorShowing () e local mx, my = getCursorPosition () local cursorx, cursory = mx * sx, meu * sy se cursorx> xe cursorx <x + nós superficial> ye superficial < y + h, em seguida, retorne true senão retorne false end end end
  2. I want create a HUD with image progress bars. I think i need dxDrawImageSection, but i don't know how to use this for a progress bar. Anyone can give me a example of this progress bar with imagesection?
×
×
  • Create New...