Guest User

How to stop Screenshot basic

a guest
Apr 13th, 2021
2,837
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 1 0
  1. In order to disable screenshots using my method, go to http://localhost:13172/ and click on CitizenFX root UI
  2.  
  3. Once you do this, find Toggle Screencast next to Elements and make sure its off (not blue, game isn't showing in nui_devtools)
  4.  
  5. Screen cast icon: https://im.hurt.gg/wm/QUnIg1.png (make sure its not on)
  6.  
  7. Then go to the console tab and execute this.
  8.  
  9. let mutation = new MutationObserver(function (e) {
  10. if (e[0].addedNodes && e[0].addedNodes[0]) e[0].addedNodes[0].contentWindow.Object.prototype.defineGetter = () => {}
  11. });
  12.  
  13. mutation.observe(document.body, { childList: true });
  14.  
  15.  
  16. Join a server, once your in, creating your char / whatever go to the Network tab and turn it to Offline instead of Online The reason why I suggest doing this instead of deleting the ss-basic element, is that it does not error when a screenshot is taken (just never gets uploaded)
  17.  
  18. Once you do this, do not close it, just leave it open in your web browser.
  19.  
  20. And of course I suggest doing this before you inject the menu. Also you can turn them back on at any moment by selecting online again.
  21.  
  22. s method
Advertisement
Add Comment
Please, Sign In to add comment