Leaderboard
Popular Content
Showing content with the highest reputation on 27/03/17 in Posts
-
I'm gonna give it a shot, wait a sec. Actually if you remove the attachElements line, it works fine.2 points
-
I think you could use some nicer things tho. Maybe create some objects, attach them together (so you can move them easily, with moveObject). You'll have to set up some positions early on, or you could just get a random player call a function near to him to get the ground's height. (If you want to do it this way, feel free to ask here, I'll help about it.) Back to the easy part. Creating an object and moving it on server side is easy. After that, you could use a marker, or a nicer way would be onElementClicked on client side. Again, feel free to choose, and respond here, so we can help about it.2 points
-
#قمة_الاخلاق السيده عائشه سألت النبي : مين أكتر واحده بتحبها في زوجاتك يارسول الله ؟؟ فقال لها : أنت ياعائشه ...فقالت : إذا أخرج عليهن وأخبرهن جميعا ، فضحك النبي وأعطاها تمرة ، وقال لها في الليل أجمعهن وأخبرهن ، ولا تخبري أحدا أني أعطيتك تمرة وإنصرف ومر علي كل واحدة من زوجاته وسألها عن أحوالها ، وأعطي كل واحدة منهن تمرة وأخبرها ألا تخبر أحدا ، وفي الليل إجتمعن وسألته عائشه : أي من زوجاتك تحب أكثر ؟! فأبتسم النبي وقال : صاحبة التمره ، فهي من أحبها أكثر فابتسمن جميعا وفرحت كل واحده بداخلها وفرحت كل واحده لحب رسول الله لها..... وانك لعلى خلق عظيم. النبى محمد اعظم خلق الله اللهم اجمعنا به فى الجنة.1 point
-
Hello guys. I wanna make an "airdrop" script, i think this is very easy, i just dont know what should i use for this. The idea: When the resource start,or the next "timer" start the script pick a random position from table, and starting dropping down the "object". When the object is on the ground, its creating marker or anything, (onPlayerHit) then give the player weapons, and ammos. Can anybody give me any tip, what should i use for this? Which functions1 point
-
1 point
-
1 point
-
You can just check the boxes position, and if it's at its end location, then destroy it.1 point
-
1 point
-
not test function cl(p, pt) local player = getPlayerFromeName ( pt ) if ( player ) then x, y, z = getElementPosition ( p ) xt, yt, zt = getElementPosition ( pt ) dxDrawLine3D ( x, y, z, xt, yt, zt, tocolor ( 0, 255, 0, 230 ), 2) end end addEventHandler("onClientRender",root,cl) addCommandHandler("getplayertarget", cl)1 point
-
@Killer Project @F_F يقول يبي سهم فوقه ذذ مو علامة بالماب @LOAM تقدر تستفيد من dxDrawLine3D هذا الفنكشن يرسم لك خط 3دي ذذ يعتمد عن إحداثيات البداية حتى النهاية تقدر تحط احداثياتك انت بالثلاث االاحداثيات الأولى والثانية احداثيات صديقك رح يرسم لك خط يبدأ منك حتى صديقك هيك تحدد موقعه ذذ1 point
-
1 point
-
1 point
-
not test function playerarrow( Player, Players ) local player = getPlayerFromName (Players) if ( player ) then local x, y, z = getElementPosition ( Player ) local xp, yp, zp = getElementPosition ( Players ) createBlipAttachedTo ( player, 3 ) end end addCommandHandler( "Player", playerarrow )1 point
-
Make the markerSize bigger, I think the marker is inside the object, so the hit is not registered. Can you hit the marker now, or it's only possible if you jump up on top of the object?1 point
-
1 point
-
1 point
-
Did you rewrite this line? attachElements(arrowMarker,object, 0, 0, 2 ) -- < Attach... >--1 point
-
1 point
-
function hitT(hitElement) if source == arrowMarker and getElementType(hitElement) == "player" then destroyElement(arrowMarker) destroyElement(object) outputChatBox("Hit") end end addEventHandler("onMarkerHit",root,hitT)1 point
-
Temporary fix: Downgrade your MTA version. https://nightly.multitheftauto.com/mtasa-1.5.3-full_rc-11199-20170223.exe1 point
-
Same issue started happening for me today too, it doesn't matter if i join public server, or map editor. The cursor has delay even when i minimize mta, so it's affecting everything, the issues stop as soon as i quit MTA.1 point
-
The exact same issue started for me not more than 30 mins ago: Logitech G900 with 1600 dpi and 1% ingame sensitivity (dual monitor + windowed MTA). Mouse starts to "lag" as soon as MTA is started. Will try to reinstall MTA and see if it helps1 point
-
1 point
-
اول شي تكلم باحترام؟ وهل تراه حرامي مثلك !؟ الصمت متعه في زمن الكلام الكتير خير الرد علي السفيه الصمت.1 point
-
1 point
-
1 point
-
i go there but not understand any thing ! Another Q Now after i download GTW-RPG v3 To INSTALL : 1) Edit in mtaserver.conf 2) Copy [maps] & [misc] & [resources] & [traffic] To mods/deathmatch/resources/ 3) i found file db.sql with GTW-RPG v3 !!! What i do with him !!1 point
-
اكبر غلط انك تبي تسوي مهمة وتجي تعدل على مهمة ثانية ابدأ من 0 يكون اوضح لك وتفهم الي قاعدد تسويه1 point
-
شباب برسل لكل شخص الاكاونت الخاص بيه للسيرفر بالخاص او الاخ ايكو بيرسل للجميع1 point
-
1 point
-
1 point
-
1 point
-
function callFunctionWithSleeps(calledFunction, ...) local co = coroutine.create(calledFunction) --we create a thread coroutine.resume(co, ...) --and start its execution end function sleep(time) local co = coroutine.running() local function resumeThisCoroutine() --since setTimer copies the argument values and coroutines cannot be copied, co cannot be passed as an argument, so we use a nested function with co as an upvalue instead coroutine.resume(co) end setTimer(resumeThisCoroutine, time, 1) --we set a timer to resume the current thread later coroutine.yield() --we pause the execution, it will be continued when the timer calls the resume function end -----------example----------- function pauseExample(a, b, c) outputChatBox("Started the execution. a value: "..tostring(a)) sleep(5000) outputChatBox("Waited 5 seconds. b value: "..tostring(b)) sleep(5000) outputChatBox("Waited 10 seconds, finishing the execution. c value: "..tostring(c)) end callFunctionWithSleeps(pauseExample, 1, 2, 3) Not tested, but should work. Keep in mind, however, that this exact implementation won't display errors within the called function, because coroutine.resume returns the error as a string instead of propagating it to the caller.1 point
