-
Posts
3,875 -
Joined
-
Days Won
67
Everything posted by DNL291
-
Try using this: executeCommandHandler( "neon", "blue" )
-
Copy my code again, I fixed few errors.
-
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)
-
Como assim destruir a faca? takeWeapon não funcionou? Ou você quer tirar a faca quando atingir o colshape?
-
Para mim, ficou claro que você pediu que eu fizesse.
-
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.
-
You're welcome.
-
I think if the gridList have many rows/columns, automatically will create a scrollBar
-
Line 39, replace with: local getComboPlayer = guiGridListGetItemText(Para.gridlist[1], guiGridListGetSelectedItem(Para.gridlist[1]))
-
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.
-
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.
-
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.
-
To put "Occupation" in scorebard use: exports.scoreboard:addScoreboardColumn('Occupation', 2)
-
getElementData should not be returning a vehicle. Also, getVehicleOccupants returns a table.
-
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.
-
Show us the original positions of the text and tell what resolution you used to create that dx-text.
-
Check this out: https://wiki.multitheftauto.com/wiki/Cl ... _Functions https://wiki.multitheftauto.com/wiki/Se ... _Functions
-
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 )
-
That's useless, since the CJ clothes texture already can be replaced.
-
Line 5 & 6 is useless. Change localplayer to localPlayer at line 21. onClientRender should be called to the root element.
-
That's because you're using curIndex = curIndex - 1 when click both buttons.
-
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
-
What do you mean? onClientGUIClick is only for GUIs.
-
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.
