-
Posts
206 -
Joined
-
Last visited
Everything posted by salh
-
local salhmark = createMarker(-2439.22803, -616.13788, 132.55708, 'cylinder', 2.0, 255, 0, 0, 0) اخر الكود فيه 255,0,0 الون 0 الاخيره ذا الشفاشفيه
- 1 reply
-
- 1
-
-
guiSetProgressBarRun واضح من الاسم Syntax guiSetProgressBarRun(progressBar theProgressbar, float ProgressBarCount, float ProgressBarCountPlus) theprogrssbar = البار ProgressBarCount = البار يبداء عند رقم ProgressBarCountPlus = كم يزيد البار في الثانيه (الكود) function guiSetProgressBarRun ( guiElement, ProgressBarCount, ProgressBarCountPlus ) if not guiElement == "gui-progressbar" or not ProgressBarCount or not ProgressBarCountPlus then outputDebugString("Bad arugment @ guiSetProgressBarRun ",0,255,0,0) return end guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) setTimer( function ( ) if not tonumber ( ProgressBarCount ) then return false end ProgressBarCount = ProgressBarCount + ProgressBarCountPlus guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) end , 1000 , ProgressBarCount ) end (مثال) addEventHandler("onClientResourceStart", resourceRoot, function() salh = guiCreateProgressBar(393, 533, 438, 65, false) guiSetProgressBarRun(salh, 0, 10) end ) اذا كان عندي اي خطاء علموني ابي اتعلم من اخطائي (:
-
صنعت لك ذا الفاكشن حاول تستفيد منه + سوي اول ما يدخل الاعب يظهر function guiSetProgressBarRun ( guiElement, ProgressBarCount, ProgressBarCountPlus ) if not guiElement == "gui-progressbar" or not ProgressBarCount or not ProgressBarCountPlus then outputDebugString("Bad arugment @ guiSetProgressBarRun ",0,255,0,0) return end guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) setTimer( function ( ) if not tonumber ( ProgressBarCount ) then return false end ProgressBarCount = ProgressBarCount + ProgressBarCountPlus guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) end , 1000 , ProgressBarCount ) end addEventHandler("onClientResourceStart", resourceRoot, function() salh = guiCreateProgressBar(393, 533, 438, 65, false) guiSetProgressBarRun(salh, 0, 10) end )
-
why you make this local salh = guiCreateLabel(453, 0, 476, 78, character, false) -- this is gui you can use local ut not Necessary
-
-- gui Button = guiCreateStaticImage(250, 250, 250, 30, "gfx/Button.png", false) function outputPressedCharacter(character) if character==" " then --if the character is a space character = "space" --change 'character' to 'space' end setTimer ( function() guiSetText(salh, "") end, 100, 1 ) salh = guiCreateLabel(453, 0, 476, 78, character, false) end addEventHandler("onClientGUIClick", root, function () if source == Button then addEventHandler("onClientCharacter", getRootElement(), outputPressedCharacter) end end) thsi code make the text show this*
-
انت مصعبها function dxCreateGridList(x,y,h,w,color) dxDrawRectangle(x, y, h, w, color or tocolor(249, 0, 0, 153), false) dxDrawLine(x, y+30, h+h-163, w-w+145, tocolor(255, 255, 255, 255), 1, false) end function salh() dxCreateGridList(437, 115, 599, 471) end addEventHandler("onClientRender", root, salh) ترا بس مثال يعني لو تغير المكان بتصير مشكلة في الاين + تقدر تضيف لها فاكشنات زي اضافت رو و ايتمز مثال function dxAddItems(x,y,h,w,color,text) local y = y + 20 dxDrawRectangle(x, y, h, w, color or tocolor(220, 220, 200, 250), false) dxDrawText(text, x, y, h, w, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end
-
ok this show the text
-
you want if player click the button show the text or the character? this work with me
-
please clarify use this: -- gui Button = guiCreateStaticImage(250, 250, 250, 30, "gfx/Button.png", false) function outputPressedCharacter(character) if character==" " then --if the character is a space character = "space" --change 'character' to 'space' end setTimer ( function() guiSetText(salh, "") end, 100, 1 ) salh = guiCreateLabel(453, 0, 476, 78, character, false) end addEventHandler("onClientGUIClick", root, function () if source == Button then addEventHandler("onClientCharacter", getRootElement(), outputPressedCharacter) end end)
-
try this -- Client function addToXML( player, GlobalID, folder, folder1 ) local xml = xmlLoadFile("meta.xml") if ( xml ) then huh = xmlCreateChild( xml, "file" ) xmlNodeSetAttribute( huh, "src", folder.."/"..folder1.."/"..GlobalID) xmlSaveFile(xml) xmlUnloadFile(xml) else print("Unable to open meta.xml") end end addCommandHandler("Reload", addToXML)
-
--Client Moneys = 0 addEventHandler("onClientRender", root, function() dxDrawText("Vip Money:"..Moneys, 1038, -3, 1366, 53, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false) end ) function GiveMoneys() Moneys = Moneys + 1 end addCommandHandler("Vip", GiveMoneys)
-
you need update the xml file with out restart the script? you can use https://wiki.multitheftauto.com/wiki/XmlSaveFile and https://wiki.multitheftauto.com/wiki/XmlLoadFile
-
السؤال واضح يبي يعرف كيف يسوي ميمو و قريدلاست وليديت بوكس دي اكس
-
هاذي اشياء مو اساسية + شكرا على الشرح ي ام بي سي (:
-
--Client salhMark = createMarker ( -666.91980, 951.71588, 12.13281, "cylinder" ) function salh(hitElement) if isPlayerInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle(hitElement) setElementPosition(vehicle, -656.82086, 949.41492, 12.13281) end end addEventHandler("onClientMarkerHit",salhMark,salh)
-
مود جميل من شخص اجمل
-
-- server function salh(thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then destroyElement ( theVehicle ) end end addEventHandler ( "onPlayerQuit" , root ,salh)
-
انت وش تبي تسوي من الاساس ؟
-
Nice (:
-
you can use https://wiki.multitheftauto.com/wiki/DxDrawText to make text for new money and make function who make the number + or -
-
on click the guiCreateStaticImage show text?