Search the Community
Showing results for tags 'start'.
-
hi guys i want call marker from another function like this code local hidemark = createMarker(10,50,5,"cylinder",1,0,255,0) function mark(theplayer) markerveh =createMarker(0,0,5,"cylinder",1,0,255,0) end addEventHandler("onMarkerHit",marker1,mark) function job1(theplayer) setElementVisibleTo(markerveh,root,false)-- for here end addCommandHandler("hidemark",job1)
-
GTA:SA in Singleplayer is working perfectly fine, but if i want to play MTA it's not starting, when i run it it have the logo "stop playing with yourself" and then it's closing This is the MTADiag log. https://pastebin.mtasa.com/556249767
-
Boa Tarde , eu coloquei um mod de ativa resource sozinho. Tranquilo ate ai tudo legal porem nao gostei muito desse mod então resolvi tirar Agora quando tendo ativar algum mapa nao ativo ai entro no console para ver oque esta dando e aparece isso : Link : http://prntscr.com/sc9lwy Por favorr me ajudem
-
I recently dove into this simple thing called "scripting and building a server". Naturally —added to my already curious personality—, I always come up with a doubt, a question, or any sort of uncertainty. After a week of messing around with it, I noticed that 5 of the 10 last posts made in the Script section were from me. I was having so much fun —truthfully— that I just kept on finding new things to ask. I'm pretty sure they are common questions. I'm not asking to have a script from scratch, or to be taught absolutely everything. It is most commonly about errors and to help myself understand the colloquial language of the scripts. However, I can't help but think that maybe it's not the best approach. I always think to myself "try to find it on your own", but I frenquently find myself getting even more confused the more I tour into each command and function. Is there a certain tacit limit as to how many questions can be asked? Is there any way to get the necessary help without flooding the sections?
-
Hi there! I've been trying to make a script for vehicle engine starter. My idea is, that player would have to hold down a key for 2 seconds and then the engine would start. Is there anybody that can help me with this please?
-
السلام عليكم ورحمة الله وبركاتة كيف الحال ان شاء الله بخير انا يا شباب بدي اسوي سيرفر تمام ( وعندي القدرة على برمجة 4 أنواع سيرفر في وقت زمني قصير نسبياً ولكن شغل ممتاز ( حصري والانوع موجودات بالتصويت ( حرب العصابات , هجولة , حياة واقعية , زومبي ) اما باقي ما تبقى ما عندي معرفة بأنوع تلك او كيف نظامها فلهذا ما اخطط اشتغل عليهم انصحوني اي نوع اشتغل عليه واكثر نوع ممكن يجيب لاعبين في حال توفر ادارة جيدة ارجو من الجميع المشاركة المثل يقول : ا " النصيحة بجمل "
-
i added DD maps, but doesn't working.. when i connect the server, show votemanager, i vote for example 7, and the map does not start.. Why? -.-
-
function countdownFin() removeEventHandler("onClientRender", root, eventszamlalas) end local countdown = setTimer(countdownFin, 5000, 1) local screenW, screenH = guiGetScreenSize() function eventszamlalas() local x = getTimerDetails(countdown) local timeLeft = math.ceil(x/1000) dxDrawLine((screenW * 0.4111) - 1, (screenH * 0.1244) - 1, (screenW * 0.4111) - 1, screenH * 0.1589, tocolor(254, 254, 254, 255), 1, false) dxDrawLine(screenW * 0.6118, (screenH * 0.1244) - 1, (screenW * 0.4111) - 1, (screenH * 0.1244) - 1, tocolor(254, 254, 254, 255), 1, false) dxDrawLine((screenW * 0.4111) - 1, screenH * 0.1589, screenW * 0.6118, screenH * 0.1589, tocolor(254, 254, 254, 255), 1, false) dxDrawLine(screenW * 0.6118, screenH * 0.1589, screenW * 0.6118, (screenH * 0.1244) - 1, tocolor(254, 254, 254, 255), 1, false) dxDrawRectangle(screenW * 0.4111, screenH * 0.1244, screenW * 0.2007, screenH * 0.0344, tocolor(0, 0, 0, 161), false) dxDrawText("Az event elkezdődött! Vége: "..convertSecondsToMinutes(timeLeft), screenW * 0.4118, screenH * 0.1244, screenW * 0.6118, screenH * 0.1589, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end function eventstart() addEventHandler("onClientRender", root, eventszamlalas) end addCommandHandler("asd", eventstart) function convertSecondsToMinutes(sec) local temp = sec/60 local temp2 = (math.floor(temp)) local temp3 = sec-(temp2*60) if string.len(temp3) < 2 then temp3 = "0"..tostring(temp3) end return tostring(temp2)..":"..tostring(temp3) end i created a command, which displays the dx elements, and the timer, but the timer starts with the script, and when it expires, the command doesn't working.. i want, when i type command, show dx elements to everyone, and start timer, how to fix this ? sorry for my very bad English..:|