Jump to content

Mefisto_PL

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by Mefisto_PL

  1. If I set it in client-side then it will have that effect?
  2. Genius.. I know that function, but how to make something diffrent for another people ;x
  3. How to set alpha for vehicles other players? For example when first guy drive then he see his vehicle in 255 alpha, but second guy's car is in another alpha. In perspective second guy's his vehicle is in 255 alpha, but first guy's car is in another. ( I've hope that you can understand me )
  4. Hmm so for example I create dx button and that function move this button from first position to second position, right?
  5. dxMove(dxElement,xMove,yMove,titleMove) Show me it "in action"
  6. But how use it in export ? Make an example pls ;x
  7. I found in dxGUI resource that script: --[[ /*************************************************************************************************************** * * PROJECT: dxGUI * LICENSE: See LICENSE in the top level directory * FILE: dxAnimation.lua * PURPOSE: Animation Functions * DEVELOPERS: Skyline * * dxGUI is available from [url=https://community.multitheftauto.com/index.php?p=resources&s=details&id=4871]https://community.multitheftauto.com/index.php?p= ... ls&id=4871[/url] * ****************************************************************************************************************/ ]] function dxMove(dxElement,xMove,yMove,titleMove) if not dxElement or not xMove or not yMove then outputDebugString("dxMove gets wrong parameters (dxElement,xMove,yMove[,titleMove=true])") return end if titleMove == nil then titleMove = true end local x,y,tx,ty = dxGetPosition(dxElement) move = function() local movex,movey,movetx,movety = false,false,false,false local xx,yy,txx,tyy = dxGetPosition(dxElement) if ( xx ~= x+xMove ) then if (xx > x+xMove ) then xx = xx - 1 else xx = xx + 1 end else movex = true end if (yy ~= y+yMove) then if (yy > y+yMove) then yy = yy -1 else yy = yy +1 end else movey = true end if (tx) then if ( txx ~= tx+xMove ) then if (txx > tx+xMove ) then txx = txx - 1 else txx = txx + 1 end else movetx = true end else movetx = true end if (ty) then if ( tyy ~= ty+yMove ) then if (tyy > ty+yMove ) then tyy = tyy - 1 else tyy = tyy + 1 end else movety = true end else movety = true end dxSetPosition(dxElement,xx,yy,false,false) if (titleMove and getElementType(dxElement) == "dxWindow") then dxWindowSetTitlePosition(dxElement,txx,tyy) end if movex and movey and movetx and movety then removeEventHandler('onClientRender',getRootElement(),move) triggerEventHandler('onClientDXMove',dxElement,xx,yy,txx,tyy) end end addEventHandler('onClientRender',getRootElement(),move) end But how to export and use it?
  8. Wątpię, że znajdziesz kogoś w ten sposób, że napiszesz kontakt do siebie i ktoś się odezwie. Jeśli już ktoś by się odezwał to musiałbyś wypisać czego potrzebujesz i ile za to oferujesz.
  9. po pierwsze, zamiast setPedSkin powinno być setElementModel, po drugie Twój event "gg" nic nie robi bo nie jest zinterpretowana funkcja, po trzecie zamiast source użyj player. ; ), po czwarte co oznacza u Ciebie "playerid" ?
  10. So you don't know where is a problem? ;/
  11. This Error I have when I use this resource
  12. Okey, I change it, but know I have another problem.. When I start resource where is window created and dxgui resource then I have lags and Errors. Error: Aborting; infinite running script in dxgui_v1
  13. function dxGUI ( ) local orange = exports.dxGUI:dxGetTheme("Orange") exports.dxGUI:dxCreateWindow(0, 0, 0.5, 0.4, "informations", true, orange) end addEventHandler("onClientResourceStart", getRootElement(), dxGUI ) exports: Call to non-running client resource (dxGUI) [string "?"]
  14. https://wiki.multitheftauto.com/wiki/DxGUI/dxGetTheme
  15. Mefisto_PL

    dx Window

    I'm using dxgui_v1 from mtasa.community.com and I have problem with export functions. function dxGUI ( ) local orange = export.dxGUI:dxGetTheme("Orange") export.dxGUI:dxCreateWindow(0, 0, 0.5, 0.4, "informations", true, orange) end addEventHandler("onClientResourceStart", getRootElement(), dxGUI ) What's wrong? ;/
  16. guiCreateWindow guiCreateButton setElementModel takePlayerMoney Powodzenia : )
  17. Okay. I will try to make it when I better learn lua, thanks anyway.
  18. In race gamemode meta.xml is that code: "*randommaps" value="false" friendlyname="Random maps" accept="false,true" group="Gameplay" desc="Set to true to make the next map selection automatic." /> Change it to: "*randommaps" value="true" friendlyname="Random maps" accept="false,true" group="Gameplay" desc="Set to true to make the next map selection automatic." />
  19. I think you want to make that will set random maps, right?
  20. So it's hard script to do ?
  21. https://wiki.multitheftauto.com/wiki/OnVehicleEnter in meta <script src="rrtrucker_server.lua" type="server"/>
  22. Mefisto_PL

    Gamemods

    Hi ! I have a problem, I want to create more than one gamemode on a server, but I don't know how to do it. It's on FFS, TG, Neon servers.. Can anybody say how to create something like that ?
  23. Mefisto_PL

    DELETE!!

    yea.. use jacked userpanel ..
×
×
  • Create New...