-
Posts
460 -
Joined
-
Last visited
Everything posted by Mefisto_PL
-
If I set it in client-side then it will have that effect?
-
Genius.. I know that function, but how to make something diffrent for another people ;x
-
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 )
-
Hmm so for example I create dx button and that function move this button from first position to second position, right?
-
dxMove(dxElement,xMove,yMove,titleMove) Show me it "in action"
-
But how use it in export ? Make an example pls ;x
-
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?
-
MTA szukam Skryptera lua.
Mefisto_PL replied to Heseam's topic in Poszukiwania i oferty graczy, reklamy serwerów
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. -
Szukam Skryptu
Mefisto_PL replied to Heseam's topic in Poszukiwania i oferty graczy, reklamy serwerów
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" ? -
So you don't know where is a problem? ;/
-
This Error I have when I use this resource
-
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
-
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 "?"]
-
https://wiki.multitheftauto.com/wiki/DxGUI/dxGetTheme
-
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? ;/
-
Szukam Skryptu
Mefisto_PL replied to Heseam's topic in Poszukiwania i oferty graczy, reklamy serwerów
guiCreateWindow guiCreateButton setElementModel takePlayerMoney Powodzenia : ) -
Okay. I will try to make it when I better learn lua, thanks anyway.
-
You're welcome.
-
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." />
-
I think you want to make that will set random maps, right?
-
So it's hard script to do ?
-
https://wiki.multitheftauto.com/wiki/OnVehicleEnter in meta <script src="rrtrucker_server.lua" type="server"/>
-
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 ?
