• Content count

  • Joined

  • Last visited

  • Days Won


IIYAMA last won the day on June 16

IIYAMA had the most liked content!

Community Reputation

84 Popular


  • Rank
  • Birthday 01/01/16


  • Gang
  • Location

Recent Profile Visitors

1,252 profile views
  1. Np.
  2. You could use an export to import a table with your custom oop functions. Even though you will be indexing this table to access these functions instead of multiple variables. Another option could be loadstring. https://www.lua.org/pil/8.html
  3. This is something you can only figure out by debugging your code. Since you haven't done that properly, you go to the forum and say: 'it doesn't work but I do not know why'. But if you did do that properly, then you could say: 'This variable contains a wrong value.' This is NOT properly debugging: Staring at the debug console and waiting for an error/warning to show up. So follow a tutorial instead:
  4. not supported. The only thing you can do is create an overwrite, which will take a lot of time.
  5. you could try to find those with: https://community.multitheftauto.com/index.php?p=resources&s=details&id=7549
  6. There is an error/warning on line 28 when you write /check, don't talk bull:~. Use this tutorial to find your problem:
  7. You can't understand that the script overwrites/re-sync the melee damage that is given to peds by players? If that is not what you want, then indeed there is no possible way to help you.
  8. As I said before, it isn't fixable that way. I gave you a solution, use it if you really want it. Scripting is required as this is the scripting section.
  9. Nicely done!
  10. The way peds receive damage from melee attacks. If you use that resource outside the boundary on a ped, you would know. But I do not recommend you to use everything from that resource, because it is very old and consumes a lot of data.
  11. By creating an overwrite, that's the only fix. Need inspiration on how to do that? See this resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=1065
  12. if #currentWeatherTable == 0 then setNewWeather() end Place between line 21 and 22. (in the current code here) Which will full up the 'currentWeatherTable' table again.
  13. np.
  14. function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end function getRightOrLeft(oldX, oldY, startX, startY, endX, endY) local rotZ1, rotZ2 = findRotation( oldX, oldY, startX, startY ), findRotation(startX, startY, endX, endY) local rotationOffsetZ = (rotZ1 - rotZ2 + 360) % 360; if (rotationOffsetZ > 180) then rotationOffsetZ = 360 - rotationOffsetZ else rotationOffsetZ = -rotationOffsetZ end return rotationOffsetZ > 10 and "right" or rotationOffsetZ < -10 "left" or "nothing" end So you have 3 positions... seriously... pffffff your really making it hard to help you. -- try to use this in your code iprint(getRightOrLeft(previousNode.x, previousNode.y, node.x, node.y, nextNode.x, nextNode.y)) --
  15. So 2 positions. (not 4) Technically it can't be left or right unless you compare it with an start-point. Is 0 your start-point? And what is left and right to you?