-
Posts
521 -
Joined
-
Last visited
Everything posted by Axel
-
I used setElementData(tped,"name","John") and getElementData(tped,"name","John") at a if and it works. Thanks for the suggestion Jesse.
-
I made 2 of those for 2 peds and now it shows the both gui's when i click on one of them..
-
Eu as zice tot de un RPG sau RolePlay. Sunt interesat de oferta ta TheRuNix, iar despre experienta ma consider destul de experimentat in scripting in MTA, pot face de la sistem de salvare pana la sistem de ganguri sau multiple gamemoduri cu dimensiuni.
-
u can use x,y,z = getScreenSize(thePlayer)
-
You should use [lua ] [/lua] for the code..
-
How can i make.. when i click with the mouse on a ped a gui appears?
-
You have to change here repeat until spawnPlayer ( player, x+math.random(1,5), y+math.random(5,9), z, 90, math.random(312), 0, 0) x,y,z / coordonates
-
Thank you very much, i apreciate your help.
-
I tested and there is a error line 13 unexpected symbol near '['
-
Im trying to create a pickup near the player when he types /givemoney {ammount} , i made the script but it does not work, i can t find bugs .. function givemoney(thePlayer, command, amount) local givingplayer = getPlayerFromName ( thePlayer ) local x,y,z = getElementPosition(thePlayer) local x = x + 5 local gpickup = createPickup(x,y,z,1212) takePlayerMoney (thePlayer, math.abs(tonumber(amount))) end addCommandHandler ("givemoney", givemoney) function takemoney ( thePlayer ) givePlayerMoney(thePlayer, math.abs(tonumber(amount))) destroyElement(gpickup) end addEventHandler ( "onPickupUse", gpickup, takemoney )
-
I cannot see the image, make sure you upload it with imageshack.us it will work.. And your sure you registered?
-
Just change the coordonates of the gui window..
-
You should not double post just becouse none answered. Play MTA 1.1 and wait for new versions..
-
If you want to show the wanted score in the scoreboard you should use call(getResourceFromName("dxscoreboard"),"addScoreboardColumn","Wanted Level",root,70) function check() for w in ipairs(getElementsByType('player')) do local wanted = getPlayerWantedLevel(w) setElementData(w,"Wanted Level",wanted ) end setTimer(check, 10000, 0) This will check every player wanted level and show it in that colum.
-
Is there a list with all the pickups ID s? Here https://wiki.multitheftauto.com/wiki/CreatePickup are some of them, but the rest?
-
I had that error alot of times too. Looks like its a MTA error. In MTA 1.1 it is fixed ..
-
Comunitatea romanilor in MTA este in crestere, de aceea m-am gandit sa avem un loc in care romani sa poate intreba/cere ajutor in privinta scripturilor. Deci, romanii doritori de a invata lua sa intrebe. ->D
-
Is there another way to do it? A ped walking with a marker infront of him looks strange..
-
If you want to make jobs you should use> setElementData(thePlayer,"Job","Job Name") And for the scoreboard call(getResourceFromName("scoreboard"),"addScoreboardColumn","Job",root,70) function refresh() for a in ipairs(getElementsByType('player')) do local Job = getElementData(a,"Job") setElementData(a,"Job",Job ) end setTimer(refresh, 10000, 0)
-
So i want to attach a pickup to a Ped and using a walk animation, the pickup to move with the ped. taxiped = createPed(187,1220,-1812,16,0) setPedRotation(taxiped,180) setPedAnimation( taxiped, "ped", "WOMAN_walknorm") tpickup = createPickup (-2026.5, -101, 35.5, 3, 1239, 1 ) attachElements(taxiped,tpickup)
-
U can use attachElements. # attachElements ( object, car,0,0,3.9 )
-
If i will solve the BSOD of my Windows 7 or i will install MTA on Linux i will 100% be there! If not at least i will be on the forum
