Advertisement
SirMeme

ESP DOCS

Jan 4th, 2021 (edited)
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. Misc options:
  2. ESP.TeamColor = true/false - whether to use team color
  3. ESP.Players = true/false - show/hide players
  4. ESP.FaceCamera = true/false - whether the boxes should face the direction the player is looking or always face your camera
  5. ESP.AutoRemove = true/false - whether the boxes should be removed when the object is parented to nil (defaults to true)
  6.  
  7. Overrides:
  8. The ESP supports overriding certain functions, specifically for games with custom teams/characters system. Overriding them works by doing ESP.Overrides.FunctionName = customFunc
  9. For example Bad Business has custom characters which don't use plr.Character, so normally the ESP wouldn't work, however you can easily fix it by doing something like this:
  10. https://pastebin.com/123tGvtL
  11.  
  12.  
  13. Result: https://i.vgy.me/9w30QT.png
  14.  
  15. Full list of overrides and their explanation below:
  16. GetTeam(player) - should return the team object the player is on (can return a table or some other identifier, since it's only used for determining team mates)
  17.  
  18. IsTeamMate(player) - should return true if "player" is a team mate of the local player
  19.  
  20. GetColor(object) - only used for objects which don't have Color or ColorDynamic specified, should return a Color3 (or nil, in which case it uses ESP.Color)
  21.  
  22. GetPlrFromChar(char) - should return the player whose character is char
  23.  
  24. UpdateAllow(box) - return false if the box should be hidden, otherwise return true, usually used to hide players in lobby areas
  25.  
  26.  
  27.  
  28. Custom Objects
  29. The ESP has a built-in support for easily implementing custom objects, such as chests or cars or whatever by using ESP:AddObjectListener(parent, options)
  30. It will connect ChildAdded/DescendantAdded (depending on options) to the parent, and match the added instances for specified options, and if a match is found, add them to the ESP.
  31. It also works retroactively, meaning it will add instances which were created before the script was ran.
  32.  
  33.  
  34. Example 1, Murder Mystery 2 dropped gun ESP:
  35. https://pastebin.com/Bag2VQty
  36.  
  37.  
  38. Example 2, R2DA Zombies ESP:
  39. https://pastebin.com/xRDri4HN
  40.  
  41.  
  42. Full list of options and their explanation below:
  43. Recursive - true/false, whether to use DescendantAdded instead of ChildAdded or not
  44.  
  45. Type - the expected ClassName/base class of the object, ex. Model, Part, BasePart, etc.
  46.  
  47. Name - the expected Name of the object
  48.  
  49. Validator(obj) - function, should return true if the object should be added to the ESP
  50.  
  51. PrimaryPart - the name of the part under the object that the ESP should treat as the primary part, can also be a function which should return the part
  52.  
  53. Color - either a Color3 or a function which returns a Color3 (will only be called once)
  54.  
  55. ColorDynamic - explained earlier
  56.  
  57. Name - a string or a function which returns one
  58.  
  59. IsEnabled - explained earlier
  60.  
  61. RenderInNil - explained earlier
  62.  
  63. OnAdded(box) - function, will get called after an object has been added to the ESP by the listener
  64.  
  65. They are all optional, but you should at least specify Type or Name
  66.  
  67.  
  68.  
  69. Integrating custom drawing objects with the ESP
  70. If you have something like a FOV circle which uses the drawing api and you don't want to make a separate RenderStepped loop just to update it, you can integrate it with the ESP's update loop. It will get updated even if the ESP is toggled off. All you have to do is make a table with an Update function, and then insert it into ESP.Objects table
  71.  
  72. FOV circle example:
  73. https://pastebin.com/d116Gihq
  74.  
  75. The reason it's going to update it even if ESP is toggled off is because in the RenderStepped loop it uses "pairs" when ESP is enabled, and "ipairs" when it's disabled. In other words, it only loops through the numerical indexes when ESP is disabled, and regular objects use dictionary keys, so it will only iterate values inserted with table.insert or such raysCool
  76.  
  77.  
  78. You're free to use/modify it however you want, just don't claim it as your own. Credits would be cool but you don't have to.
  79. Enjoy!
  80.  
  81. By - Klrlot22
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement