
DarkLink
Members-
Posts
610 -
Joined
-
Last visited
Everything posted by DarkLink
-
Ahh thats very nice!! And the cuffer need to be out of vehicle to cuff right? Really good job
-
Well this seems very well construct, I wanna test this soon, will you host a server? I like the spraycan to fix cars, not a common key, thats nice! By the way, the /cuff is nice, does it work for cars also? I mean if the player cuffed is on car will follow police too? Good job!!
-
Ye nice, you found it Thanks bro!
-
Hmm what do u mean? if an X is negative it will become positive? Btw I dont get it why you use subtraction on Y and addition on X. In my head would be addition for both but I might be wrong. Can you explain me? thanks. I understand this part " math.sin ( math.rad® ) * meters " you dont need to explain Thanks in advance!!
-
Hm okay thanks for the advice buffalo
-
Buffalo I waas trying to understand your function, but need to know one thing, how map of gta is built ? I mean x, y, z .. y comes from south to north and x from west to east ? is that right? thanks.
-
Tryed now it works, look at my edit on reply before Is there some bug with rotation on createPed? it suppose to set rotation also on createPed function
-
Guys I forgot the .map file, and tryed just doing this: local buyerPed = createPed(14, -545.63269042969, 2577.0908203125, 53.515625, 0) on the second try: local buyerPed = createPed(14, -545.63269042969, 2577.0908203125, 53.515625, 120) on the third try: local buyerPed = createPed(14, -545.63269042969, 2577.0908203125, 53.515625, 200) And the ped keeps looking at the same point!! God dammn it ! lol Thanks in advance EDDIIIT: I tryed using setPedRotation ( ped thePed, float rotation ) and it works now!! But when I try to set the rotation on the createPed function it doesnt work is there some bug with this? if yes, can someone report to the mta team? I dont know how to do it. Thanks!!
-
Hmm I understand I need some math calculations, and use Pythagorean theorem Didnt know about that, I will try that later, first need to fix the rotation problem. Thanks for your help mate!
-
Thanks for your help, but the function createPed only receives on rot coord. Its on wiki : createPed ( int modelid, float x, float y, float z [, float rot = 0.0 ] ) And I tryed what u said before, but didnt work too
-
Thanks buffalo, but still not working... This is weird, its a simple thing And still not working .. bah :c
-
Hey guys, I would be really nice if there was some function like this.. so I dont need to put manual markers on my map files. Is it possible to get the position 1 meter in front of any ped? I mean I want to place a marker in front of a ped.. not on his back!! in front, like u were buying something from him. Is there any function to get the position of that spot? Thanks!
-
yes it works, I manage to do many things with map files.. getting position of spawn .. get position of objects. but I am having problem with rotation Thanks for your help
-
Okay I am having a problem here with rotation of peds I have this on my map file: <spawnpoint id="buyer" skin="0" posX="-545.63269042969" posY="2577.0908203125" posZ="53.515625" rotX="0" rotY="0" rotZ="262" /> And now I want to create a ped on that position and with that rotation. So I made this on Lua: local buyer = getElementByID("buyer") local x,y,z = getElementPosition(buyer) local rot1, rot2, rot3 = getElementRotation(buyer) local buyerPed = createPed(14, x, y, z, rot1) I notice on the page https://wiki.multitheftauto.com/wiki/GetElementRotation, about the default order of rotation. and it says that retuns like Z,Y,X, so thats why I put rot1 on createPed function, anyway I tryed with rot2 and rot3 and it doesnt set the rotation.. Can someone help me here? Thanks!!
-
Thanks for all the replys guys, I will keep Aibo solution is working fine. I know I can optimize the code, but dont need it , I guess Thanks all!!
-
Hmm didnt know about that! Thanks alot bro! Any information on how to make and use that EDF files ? Thanks!
-
AHHH I understand it very well!! Didnt know that type of scripting Thanks bro! Thanks JH10 too!! I tested and it works Aibo! Ty again
-
Didnt worked JH10, but thanks for ur help! Aibo didnt test yet, but can you please explain me this line: setTimer(function() alpha = alpha == 255 and 0 or 255 end, 500, 3) ? I cant get it, u assign the variable alpha to 255 and 0 ? or 255? I didnt get it.. Thanks in advance!
-
Hm thanks for your help, I understand it About the code, there was an error, one end missing on the function inside the timer But ur code now doesnt even flash Ty
-
Okay first I am need to clarify my doubt about Lua. Something that I didnt get it yet, so if someone could explain me, I would be really grateful So.. if we have a function like this: function blabla() setTimer(heei, 1000,3) local x = 5 end end My question is: the line 4 "local x = 5" its only executed after the 3 loops of the timer?? or its readed right when the timer starts? Thanks! My second problem, I was trying to make a DxDrawText flashing, and I made it, but the flashing isnt so good, seems bugged or bad sync And then it doesnt stop flashing, and I put the removeEventHandler onClientRender.. so? This is the code: addEvent("alertRadar",true) function showAlertAdvice() addEventHandler ( "onClientRender", getRootElement(), firstAppear) end addEventHandler("alertRadar", getRootElement(), showAlertAdvice) function firstAppear () X,Y = guiGetScreenSize () X = X * (1/5.5) Y = Y * (1/3) setTimer(function(X,Y) local alpha = "255" dxDrawText ( "Slaineeed!", X, Y, X, Y, tocolor(255, 64, 64, alpha), 5) alpha = 0 end, 500, 3, X,Y) seTimer(hideAlert, 1500, 1) end function hideAlert() removeEventHandler("onClientRender", getRootElement(), firstAppear) end If someone could help me here.. Thanks in advance!!
-
Well I need the limit because, when people try to make maps for the gamemode, it wont allow them to put more than X teleports, Y cars, Z spawnpoints.. I want to limit it for my gamemode, you see? And this cant be done with EDF, right? it will be custom elements (cars too), I dont want them to use normal car spawn for the map Thanks for your reply
-
So guys recently I asked how to do this by scripting, and then someone helped me. Then a MTA Team Member come on the topic and told that this could be done by them, so all map editors would have it The topic is here: viewtopic.php?f=91&t=33734&p=352987&hilit=client+server#p352987 I wanna know if there were some progress on this..? Can MTA Team give me an answer ? If yes, I would like too see in roadmap, could give me link Well anyway would like some answer, if u guys will do it or not. Thanks!
-
Ye thanks, tryed and work Thanks alot bro
-
probably because 2.5 gets rounded to 2, so 40*2 is only 80. you can try this, see if it helps: guiProgressBarSetProgress(bar1, 0) setTimer(function() guiProgressBarSetProgress(bar1, guiProgressBarGetProgress(bar1)+4) end, 80, 25) Thanks alot guys, it worked both ways!! JH10 way and Aibo way, but there is difference. JH10 way: its exactly 2 seconds but the bar will fill 5% then 10% then 15% and so on.. Aibo way: its exactly 2,5 seconds but the bar will fill 2% then 4% then 6% and so on.. Thanks!! By the way, only one more question here, its possible to set text inside the progress bar? and color to bar when full and color to bar thats empty? THANKS
-
Ye thanks bro, I already figured out solution Thanks all!!