-
Posts
45 -
Joined
-
Last visited
Posts posted by Felix5k
-
-
On 25/10/2021 at 16:03, SkyDow said:
+5 Un lucru făcut destul de frumos, mult succes în ceea ce faci !
mersi!
-
AM CREAT PE MTA JOCUL RED LIGHT GREEN LIGHT DIN SQUID GAME
MAI JOS AVETI O PREZENTARE A SCRIPTULUI.
-
yea i got the same problem
-
si mai ai nevoie de un if care il citeste daca e admin simplu
-
Howdy
We have opened the SwordGaming server waiting for you on the server if you want something unique and beautiful!
IP : mtasa://185.248.199.125:22003
discord:https://discord.gg/hFKnVNz
-
Salutare
Am deschis serverul SwordGaming va asteptam pe server daca vreti ceva unic si frumos!
IP : mtasa://185.248.199.125:22003
discord:https://discord.gg/hFKnVNz
- 2
-
-
ayoooo
-
i think you need to use DxCreateFont
-
verifica core_client
-
Just now, Hugos said:
And how do I write hrml and css, create files and connect to *.Lua or how?
with CreateBrowser
- 1
-
9 minutes ago, Hugos said:
THANKS!!!
Do you know if HTML and CSS can be used in MTA scripts?
yes you can use html in mta
- 1
-
-
Just now, Scyrix said:
yeah it works but it does not remove the gui after i leave the marker
local ok = false local screenW, screenH = guiGetScreenSize() local markery = { { -2413.51171875, -602.2509765625 , 132.5625-1,true}, { -2412.392578125, -590.11328125 , 132.6484375-1,true} } local marki = nil for k,v in ipairs( markery ) do marki = createMarker ( v[1],v[2],v[3], "cylinder", 2, 255, 255, 255, 255 ) createPickup( v[1],v[2],v[3],3,1239,2000) setElementData(marki, "markery:gui", v[4]) end ---=-=-=-=-=-=-=-=-=-=-=-= -- enter marker function MarkerEnter(theElement, matchingDimension) if ( theElement == localPlayer ) and ok == false and getElementData(source, "markery:gui") == true then setElementData(localPlayer, "markerygui:player", true) ok = true addEventHandler("onClientRender",root,gui) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerEnter ) ---=-=-=-=-=-=-=-=-=-=-=-= -- leave marker function MarkerLeave(theElement, matchingDimension) if ( theElement == localPlayer ) and ok == true and getElementData(localPlayer, "markerygui:player") == true then setElementData(localPlayer, "markerygui:player", false) ok = false removeEventHandler("onClientRender",root,gui) end end addEventHandler ( "onClientMarkerLeave", getRootElement(), MarkerLeave ) function gui() dxDrawLine((screenW * 0.2526) - 1, (screenH * 0.3190) - 1, (screenW * 0.2526) - 1, screenH * 0.4922, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7101, (screenH * 0.3190) - 1, (screenW * 0.2526) - 1, (screenH * 0.3190) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.2526) - 1, screenH * 0.4922, screenW * 0.7101, screenH * 0.4922, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7101, screenH * 0.4922, screenW * 0.7101, (screenH * 0.3190) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.2526, screenH * 0.3190, screenW * 0.4575, screenH * 0.1732, tocolor(2, 120, 252, 62), false) dxDrawText("Informacja", screenW * 0.3338, screenH * 0.3854, screenW * 0.6120, screenH * 0.4583, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) end
now should work
- 1
-
Just now, SparkySky said:
și cum pot scăpa de costum weapons?
e o resursa nu stiu exact care si nu stiu daca sigur o ai ..
-
local ok = false local screenW, screenH = guiGetScreenSize() local markery = { { -2413.51171875, -602.2509765625 , 132.5625-1,true}, { -2412.392578125, -590.11328125 , 132.6484375-1,true} } local marki = nil for k,v in ipairs( markery ) do marki = createMarker ( v[1],v[2],v[3], "cylinder", 2, 255, 255, 255, 255 ) createPickup( v[1],v[2],v[3],3,1239,2000) setElementData(marki, "markery:gui", v[4]) end ---=-=-=-=-=-=-=-=-=-=-=-= -- enter marker function MarkerEnter(theElement, matchingDimension) if ( theElement == localPlayer ) and ok == false and getElementData(source, "markery:gui") == true then setElementData(localPlayer, "markerygui:player", true) ok = true addEventHandler("onClientRender",root,gui) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerEnter ) ---=-=-=-=-=-=-=-=-=-=-=-= -- leave marker function MarkerLeave(theElement, matchingDimension) if ( theElement == localPlayer ) and ok == true and getElementData(source, "markerygui:player") == true then setElementData(localPlayer, "markerygui:player", false) ok = false removeEventHandler("onClientRender",root,gui) end end addEventHandler ( "onClientMarkerLeave", getRootElement(), MarkerLeave ) function gui() dxDrawLine((screenW * 0.2526) - 1, (screenH * 0.3190) - 1, (screenW * 0.2526) - 1, screenH * 0.4922, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7101, (screenH * 0.3190) - 1, (screenW * 0.2526) - 1, (screenH * 0.3190) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.2526) - 1, screenH * 0.4922, screenW * 0.7101, screenH * 0.4922, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7101, screenH * 0.4922, screenW * 0.7101, (screenH * 0.3190) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.2526, screenH * 0.3190, screenW * 0.4575, screenH * 0.1732, tocolor(2, 120, 252, 62), false) dxDrawText("Informacja", screenW * 0.3338, screenH * 0.3854, screenW * 0.6120, screenH * 0.4583, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) end
try this
- 1
-
ar trebuii sa verifici modurile,dar cred ca e de la obiect stiu ca parca pe gamemode-ul acela erau arme custom si poate de acea
-
have you set export in meta?
-
-
mi-am facut deja http://prntscr.com/pjpz4f
- 1
-
-
e cam simplu safe house ala , puteai sa il faci mai bine de atat
dar oricum bravo
- 1
-
local marker = getElementsByType("marker") numaratoare = 0 for k, markere in ipairs(marker) do numaratoare = numaratoare + 1 outputChatBox(numaratoare) end
poftim aici , iti scrie in chat numarul de markere.
ca sa functioneze pe editor faci si tu o resursa si introduci functia de mai sus intr-un client.
- 1
-
[HELP]
in Scripting
Posted · Edited by Felix5k