Jump to content

DNL291

Retired Staff
  • Posts

    3,875
  • Joined

  • Days Won

    67

Everything posted by DNL291

  1. Try using this: executeCommandHandler( "neon", "blue" )
  2. Copy my code again, I fixed few errors.
  3. Try this: local barrier = {} function createBarrier ( thePlayer ) if ( getTeamName(getPlayerTeam(thePlayer)) == "Unique" ) then local nX, nY, nZ = getElementPosition(thePlayer) local nX2, nY2, nZ2 = getElementRotation(thePlayer) barrier[thePlayer] = createObject(3578, nX, nY, nZ - 0.2, 0, 0, nZ2) setElementPosition(thePlayer, nX, nY, nZ + 1) end end addCommandHandler ("b", createBarrier) function removeBarrier ( thePlayer ) if isElement(barrier[thePlayer]) then destroyElement(barrier[thePlayer]) barrier[thePlayer] = nil end end addCommandHandler ("r", removeBarrier) addEventHandler("onPlayerQuit", root, function () if isElement(barrier[source]) then destroyElement(barrier[source]) barrier[source] = nil end end)
  4. Como assim destruir a faca? takeWeapon não funcionou? Ou você quer tirar a faca quando atingir o colshape?
  5. Para mim, ficou claro que você pediu que eu fizesse.
  6. E porque eu iria fazer pra você só porque é novato em Lua? Se você realmente quer isso, aprenda Lua ou pague alguém para fazer. Aqui é um fórum para ajudas, não para pedidos de scripts. Você deve pedir as funções que serão necessárias ou pagar alguém para fazer isso.
  7. I think if the gridList have many rows/columns, automatically will create a scrollBar
  8. Line 39, replace with: local getComboPlayer = guiGridListGetItemText(Para.gridlist[1], guiGridListGetSelectedItem(Para.gridlist[1]))
  9. E como será a barra de progresso? progressBar ou em funções dx? Se for assim, você vai precisar criar a barra de progresso no lado cliente.
  10. Sim, ele pode baixar o exp_system do Castillo, mas acredito que ele queira criar o sistema de nível dele próprio. No argumento exp, você deve colocar o valor que irá aumentar o progresso, creio que você deverá antes calcular a porcentagem do valor que irá aumentar o progresso, pois a barra de progresso trabalha com porcentagem (0-100). E esse valor deve ser um número.
  11. Para aumentar a barra de progresso, faça isso: function addExp(exp) guiProgressBarSetProgress(progressBar, guiProgressBarGetProgress(progressBar) + exp) end E chame a função addExp para adicionar mais xp.
  12. To put "Occupation" in scorebard use: exports.scoreboard:addScoreboardColumn('Occupation', 2)
  13. getElementData should not be returning a vehicle. Also, getVehicleOccupants returns a table.
  14. Bem, eu posso ajudá-lo, mas no entanto, estou com preguiça de baixar o projeto para corrigir/adicionar coisas (até por conta do projeto que estou). Se você puder citar coisas, como bugs ou algo que queira acrescentar, irei tentar ajudá-lo aqui pelo fórum. Isso pode até ser melhor, pois outras pessoas também poderão ajudá-lo.
  15. Show us the original positions of the text and tell what resolution you used to create that dx-text.
  16. Check this out: https://wiki.multitheftauto.com/wiki/Cl ... _Functions https://wiki.multitheftauto.com/wiki/Se ... _Functions
  17. Try this: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} Marker = createMarker(1119,1034,10,"cylinder",2,0,255,0) addEventHandler( "onClientResourceStart", resourceRoot, function () GUIEditor_Window[2] = guiCreateWindow(629,219,481,301,"Police Station",false) guiWindowSetMovable(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[2], false ) GUIEditor_Label[1] = guiCreateLabel(158,172,166,16,"Move To Police Station ?",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(18,199,205,93,"Yes",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(297,201,175,91,"Exit",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(69,24,338,136,"images/mtalogo.png",false,GUIEditor_Window[2]) end ) addEventHandler( "onClientGUIClick", guiRoot, function () elseif (source == GUIEditor_Button[1]) then toggleAllControls(true) setElementInterior(localPlayer, 6) setElementPosition(localPlayer, 264.74969, 77.49036, 1001.03906) guiSetVisible(GUIEditor_Window[2], false ) showCursor(false) elseif (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[2], false ) showCursor(false) toggleAllControls(false) end ) addEventHandler( 'onClientMarkerHit', Marker, function (hit) if (getElementType(hit) == "player") and (hit == localPlayer) then guiSetVisible(GUIEditor_Window[2], true ) showCursor(true) end end )
  18. That's useless, since the CJ clothes texture already can be replaced.
  19. Line 5 & 6 is useless. Change localplayer to localPlayer at line 21. onClientRender should be called to the root element.
  20. That's because you're using curIndex = curIndex - 1 when click both buttons.
  21. It's a predefined variable. I use it just to avoid root (getRootElement()). Here's the list of predefined variables: viewtopic.php?f=91&t=39678
  22. What do you mean? onClientGUIClick is only for GUIs.
  23. addEventHandler( "onClientGUIClick", guiRoot, function () if (source == nextPicButton) then if (curIndex == #images) then return end curIndex = curIndex - 1 elseif (source == previousPicButton) then if (curIndex == 1) then return end curIndex = curIndex - 1 end end ) nextPicButton and previousPicButton must be defined.
×
×
  • Create New...