-
Posts
862 -
Joined
-
Last visited
Everything posted by iMr.3a[Z]eF
-
addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end ) Mr.Pres[T]ege has solved the problem, try his code
-
@ Mr.Pres[T]ege: may i ask?| why you put false in playSound while in wiki didn't write that? and is this code fine? sound = playSound ( "1.mp3" )
-
?????? you did not do what I told you and trigger is mistake in writing
-
server addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end end ?????? you did not do what I told you and trigger is mistake in writing
-
end or ")" The same thing who told you the end & ")" is same thing? end is for: function if for
-
lol the event dont need end just close the Parentheses look at my last reply now EDIT: Now, one step remain = trigger back to client
-
-- server addEvent("test", true) addEventHandler("test",getRootElement(), function () sound = playSound ( "1.mp3", false ) end) you added 2 end
-
@Solidsnake14: sorry, i just wanna help people
-
trigger?, all the codes he writes are client
-
-- client local lastTick = 0 -- Define a variable with the last tick count local toWait = 60000 -- Define a variable with the time needed to wait local Group = { { 100000 }, } addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.staticimage[2] ) then local money = 0 if ( source == GUIEditor.staticimage[2] ) then money = Group[1][1] end if ( getTickCount ( ) - lastTick >= toWait ) then -- Calculate how long it passed since last used and compare with required time to wait. if ( getPlayerMoney ( ) >= tonumber ( money ) ) then triggerServerEvent ( 'sound1', money ) sound = playSound ( "1.mp3" ) lastTick = getTickCount ( ) else outputChatBox ( 'You Not Have Money', 255, 0, 0 ) end else outputChatBox ( "You must wait 60 seconds to use it again!", 255, 0, 0 ) end end end ) A boolean representing whether the sound will be looped. To loop the sound, use true. Loop is not available for streaming sounds, only for sound files.
-
if isPedInVehicle(player) == false then @30 من هو بلاير؟ جرب كذا في السطر 30 أحذف نفس اللي كتبتها فوق وأستبدلها if getElementType( player ) == "player" then if not isPedInVehicle( player ) then
-
^^^ أي صح شرحك بس كاتب الموضوع يبي الشرح مفهووم للي ما يعرف يبرمج مثلاً EDIT: يطريقة أسهل أنه تحط بلاير في السيرفر واللوكال بلاير بالكلاينت
-
يا شباب ما فرقنا الحين @AL-PRNS: بصراحة أنا أبي اساعدك بس أطلب كودات ونساعدك كلنا "إذا جاز التعبير" أما أذا طلبت منا نسويه عنك ما فكرت أنه تعبنا كله بيصير عليك؟
-
والله ودي أقول لك عندك طريقتين أولاً: تدور ع مود التواجد بالتاب وتنسخ الاكواد اللي تبيها وتركبها بالمود حقك ثانياً: تسأل سوليد في رسالة خاصة تقول له بالأنجليزي طبعاً ركب لي مود التواجد للمود حقي "وأعطه المود اللي سويته" هذي أسهل طريقة
-
^^^^^^^^^^^ مـَ فهمتكك, وش اليوز؟
-
This function destroys an element and all elements within it in the hierarchy
-
أدري بس أبي الألمنت يظهر بعد ما أخش السيارة
-
انا أبي الدي أكس يجي بعد ما يركب السيارة أججل سويت كذا ما زبط function T() local num = 133 addEventHandler("onClientRender", root, function() dxDrawText("Time :", 202, 192, 656, 222, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText(tostring( num ), 403, 272, 458, 299, tocolor(208, 224, 30, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end ) end addEventHandler("onVehicleEnter", root, T) Timer = setTimer( function () num = num - 1 if num <= -1 then killTimer(Timer) num = 0 end end,1000,0)
-
يعني يطلع دي أكس مثلا لو يلمس الماركر مؤقت من 1:33 وينقص لو وصل لصفر يسوي ديستروي ألمنت ذذ
-
السلآم عليكم ورحمة الله وبركاته,,, ما أبي الا كود صغيرون ذذ كود التوقيت اللي يجي ع الدي أكسس
-
كذا ما يجي؟ -- Server Side addEventHandler("onPlayerChat",root, function () setPlayerName(source,getPlayerName(source):gsub("#%x%x%x%x%x%x","")) end ) الأفنت أشوفه في بعض التاجات
-
يب يروح الدي أكس في أقل من دقيقة
