Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Mann56

  1. MTA Team has been doing a wonderful work with the mod out there and yeah, MTA still has a big playerbase even after the big amount of games out there. It's a great achievement. Hats off to the MTA Team!
  2. You mean the animation thing in DayZ 0.6?
  3. Busy with studies.

  4. Mann56

    Car Rotators

    There is a very negligible difference in the computation speed of both the loops. For example, if there were 100 elements in a table to be iterated, pairs was faster than ipairs by 3.41E-07 seconds that's 0.0000000341 seconds roughly. So, the speed doesn't really matter till you have many thousands of values. Also as @KariiiM said, it's good to use ipairs in the above example.
  5. Nvm the error is fixed now . Thanks for reading.
  6. Hey guys, I am making a script which teleports a guy away from area 51 to random cords but when i used processLineOfSight to detect whether the land is aboveor below the player ( after the teleport , since i didnt change the z cord on teleport) but it just doesn't detect the hit. I want it to detect a world model but it doesn't detect leaving my player either below the world object or far above it after teleport. Can someone help me to detect world objects using processLineOfSight? function detectProperPos(thePlayer) local x,y,z = getElementPosition(thePlayer) local hit,hitX,hitY,hitZ = processLineOfSight(x,y,z,x,y,z + 300,true,true,true,true,true,false,false,false,thePlayer,true) if hit then setElementPosition(thePlayer,hitX,hitY,hitZ) setElementFrozen(thePlayer,false) else local shit,hitX,hitY,hitZ = processLineOfSight(x,y,z,x,y,z - 300,true,true,true,true,true,false,false,false,thePlayer,true) if shit then setElementPosition(thePlayer,hitX,hitY,hitZ) setElementFrozen(thePlayer,false) outputChatBox(hit) else outputChatBox("Fail") end end end Thanks, Mann
  7. It works now, thank you very much...
  8. Hello guys, I was making a group system where i encountered this error. Whenever i open the gui, it shows for everybody even on my pressing the bound key... I am not able to figure out the reason of this thing. Here's da code SERVER function checkIfMember(thePlayer) local inGroup = dbPoll(dbQuery(connection,"SELECT Name FROM Members WHERE Name = ?",getAccountName(getPlayerAccount(thePlayer))),-1) if #inGroup > 0 then if state == false then state = true triggerClientEvent("showTheGui",thePlayer,thePlayer,state) else state = false triggerClientEvent("showTheGui",thePlayer,thePlayer,state) end end end addEvent("memberCheck",true) addEventHandler("memberCheck",root,checkIfMember) function bindPanelKey() bindKey(source,panelOpenKey,"up",checkIfMember) end addEventHandler("onPlayerLogin",root,bindPanelKey) CLIENT function triggerGui(player,state) guiSetVisible(mainWindow,state) showCursor(state) state = false end addEvent("showTheGui",true) addEventHandler("showTheGui",root,triggerGui) Hope someone can help me in this... ( I hope this extract of the code is enough, if not please inform me, i'll give the gui part) Mann.
  9. We have a value -> {"Wood Pile",1463,0.4,0,13}, 0.4 , 0 and 13 can't be co-ordinates since mostly the second last value is mostly zero.
  10. Hello guys, I am editing the DayZ gamemode, the old one by Marvin. There is an item table like - {"Wood Pile",1463,0.4,0,13}, Here can i get the meaning of the third value? Wood Pile = object 1463 = model id 0.4 = ? 0 = rotation? (Maybe) 13 = Spawning probability. I'd like someone to give me the meaning of the third and fourth value, thanks!
  11. Mann56

    LUA [HELP]

    Well I think this is the best topic to start. Also see Dealman's Naming Conventions Lua Operators Lua Tables Auto Syntax Highlighting for Notepad++ These might help you...
  12. Use performance browser.
  13. Example: If the car price is : 5000 for example, I wanna it 5,000 I didn't understand what you are trying to say... Please elaborate?
  14. Mann56


    Thank you very, very much.... I'll look through all of the above mentioned, if i have any doubts I'd ask here Btw, the Doppler Effect in MTA in your signature is also very great... Thanks
  15. Mann56


    I can't understand why we use things like "technique" whereas the simple language shaders are way easy....
  16. Mann56


    Hello guys, I was studying the shader examples, i understood the "simple" example, but i am finding it difficult to understand the second one, can someone help me, and i saw that there is a lot of difference in shaders used in shadertoy and mta, i can't get the hang of the proper syntax ad such....
  17. Well, I don't know about him but it helped me much, Thanks for the shader tutorial.
  18. Please post the functions which are called on "onClientGUIClick" Else we can't rectify what you are having wrong.
  19. Mann56

    Setting Money

    I tried many times but still is not working..... This time, i tried like suppose my car's mass is X kg, i typed X + 3 kg and it showed 60 , thats correct but just after it, i typed X + @ and it showed $120 instead of $ 40 ( dunno why but it does 20 + 60 + 40, using the outputChatBox, i have used, i could detect this) Any help?
  20. Looking the posts above, the others things are from Russian tutorials, who gave you the right to add them and make a resource and sell them?
  • Create New...