-
Posts
605 -
Joined
-
Last visited
-
Days Won
1
Everything posted by JeViCo
-
Поменяй это <script src="sounds/kill.mp3" /> На это <file src="sounds/kill.mp3" /> И сделай еще как @K1parik сказал, тогда всё заработает
-
Никто так и не ответил полноценно Держи: addEventHandler("onPlayerWasted", getRootElement(), function() local skin = getElementModel(source) -- спавним игрока с этим же скином (тут уже редактируй на своё усмотрение) local x, y, z = 0, 0, 2 -- координаты local rot = 0 -- вращение spawnPlayer(source, x, y, z, rot, skin) end)
-
Вам невероятно поможет эта страница: https://wiki.multitheftauto.com/wiki/Main_Page Если возникают какие-либо вопросы, советую задавать их на англоязычном разделе форума по скриптингу. Чем легче задача, тем быстрее вам ответят (даже через 2-3 минуты)
-
Автор был близок к истине с оптимизированным кодом. Убрал ненужную функцию и добавил проверку на мышь, дабы не было потом дополнительных проблем. Моя версия: function atmGUI() atmGUIMain = guiCreateStaticImage(0, 0, screenx, screeny, "atm.png", false) exitGUIbtn = guiCreateStaticImage(screenx/1.1955, screeny/1.367, screenx/20.5, screeny/17, "button.png", false, atmGUIMain) showCursor(true) end addEvent("drawATMgui", true) addEventHandler("drawATMgui", localPlayer,atmGUI) addEventHandler("onClientGUIClick", getRootElement(), function(bt, st) if bt == "left" and st == "up" then -- проверка на кнопку if source == exitGUIbtn then destroyElement(atmGUIMain) showCursor(false) end end )
- 5 replies
-
- 1
-
-
- gui
- static image
-
(and 1 more)
Tagged with:
-
Кодом, а не картинкой можно было? Значение переменной scrollMax равно 0, поэтому ничего не меняется
-
Со слов в самом начале поста: поменяй local px,py = 1680,1050 на local px,py = 1440,900 ИЛИ заменить dxDrawText ( "km/h",x*956,y*567,x*0,y*0,tocolor(255,255,255,255),fontScale*2,font1,"left","center",false,false,false) На dxDrawText ( "km/h",x*956,y*567,x*0,y*0,tocolor(255,255,255,255),fontScale*2,font1,"right","center",false,false,false) и немного подбора координат тут (значения сделать поменьше) x*956
-
сразу после создания состава прописывай setElementData к каждому из заспавненных поездов, вагонов (обязательно со стороны клиента). Потом для удаления, циклом проходишь через все авто проверяя на наличие этой даты.
-
I think you can't. Like adding new objects it's impossible. For now. Anyway people represent moving objects with onClientRender/setTimer + setElementPosition; Moving/changing object textures with onClientRender/setTimer + dxSetShaderValue. Better then nothing i guess
-
Hello everyone. I'm not english-speaking so i have a little problem with finding images placed on cars' surface. How does it called? Stickers/decals/images? I can't find any transparent ones :с Also could you give me at least 1 link with that?
-
after 1 hour of rewriting i got what i needed. I tried to compile file while resource was running. I didn't realise that)
-
i want to save original dff files so i made download="false". I create new file with path where i indicated download="false". I compile and save file on first startup. Also i load uncompiled data so everything ok. On the second startup i have already compiled files so i'm trying to load them. I get it's size, read it and try to use with engineLoadTXD but it returns errors like wrong path every time so i can't load data
-
Hello everyone! I tried to use teaEncode with dff models. I used fileRead function to read and decode files back but it caused error. Any suggestions?
-
solved my problem using buffer. Thanks everyone anyway
-
engineLoadTXD ( "myTxd.txd" ) error loading myTxd.txd and that's it. i added to meta.xml txd file. Client can't find this file so it gives errors.
-
it doesn't work. I can't believe that editing meta.xml ingame is impossible\
-
everything is server-side so i can't just re-write original .dff or .txd file. I just want to add new one. I tried but it don't work for me :с
-
Oh, you get it. Well, my system creates compiled file. I can't use it because it isn't in meta.xml. Also it gets different password each time(deletes old file and creates new one) so i want to update changes directly somehow
-
Hello everyone! Is it possible to add/remove something? For example i have ~20 .txd and .dff models and i want to add them with script (not software) automatically
-
lol okay then)
-
solved.
-
Hello everyone! I'm making color picker with dx functions. How can i get pixel color under mouse cursor? I tried to use render targets but it always returns 0,0,0 (rgb). I don't know how to get screen pixels without losing performance (onClientRender). I'm making everything with DGS library so it gives additional troubles. Any suggestions?
-
Thank you so much) You helped me a lot
-
Hello everyone! I have a simple shader: texture Tex0; technique paint { pass P0 { Texture[0] = Tex0; } } For example i have several images on 1 texture but background is black (even with transparent render target). How can i fix it? I want to replace black background with another texture