Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Payday 2 Hacks & Cheats › X-Ray Vision 2.0 WORKING WITH CIVILIANS AND ENEMIES

PostX-Ray Vision 2.0 WORKING WITH CIVILIANS AND ENEMIES

Posts 1–7 of 7 · Page 1 of 1
SuperShifty
SuperShifty
OUTDATED!
I still see people trying to use the old X-Ray vision script and bursting into confusion when the game CTD's so I decided to post this
I TAKE NO CREDIT FOR THIS SCRIPT!!!

I can't get colors to work so everything will be marked red. Be patient as the X-ray script coming with Pirate Perfection v13 will at least have colored civilians when it releases.

For people who don't know what to do with this, copy/paste into a text document or Notepad++ if you have it then save it as a .lua and replace it with your old X-Ray .lua

Code:
-- X-RAY VISION v2.0 (post infamy edition)
-- MARKS ENEMIES ONLY
function mark_enemies()
	for u_key,u_data in pairs(managers.enemy:all_civilians()) do
		--u_data.unit:contour():add( "mark_enemy" )
	end
	for u_key,u_data in pairs(managers.enemy:all_enemies()) do
		u_data.unit:contour():add( "mark_enemy" )
	end
	for u_key, unit in pairs( managers.groupai:state()._security_cameras ) do
		--unit:contour():add( "mark_enemy" )
	end
end

function UnitNetworkHandler:mark_enemy( unit, marking_strength, sender ) 
end
if not _markingToggle then _marktoggle = nil _markingToggle = true
	else _markingToggle = nil 
end
if not _gameUpdate then _gameUpdate = GameSetup.update 
end
do
	local _gameUpdateLastMark
	function GameSetup:update( t, dt )
		_gameUpdate(self, t, dt)
		_gameUpdateLastMark = t 
		if _markingToggle then
			mark_enemies()
		else
			if not _marktoggle then
				_marktoggle = true
				for u_key,u_data in pairs(managers.enemy:all_enemies()) do
					u_data.unit:contour():remove( "mark_enemy" )
				end
			end
		end
	end
end
#1 · edited 12y ago · 12y ago
SA
sandervend
Nice code, I for one though found it really annoying that it highlighted civilians, or maybe make it another color. (I fixed it for myself)
#2 · 12y ago
xboxlivenerd
xboxlivenerd
Thanks a lot! I've been looking for something like this for the past few days
#3 · 12y ago
SuperShifty
SuperShifty
Quote Originally Posted by sandervend View Post
Nice code, I for one though found it really annoying that it highlighted civilians, or maybe make it another color. (I fixed it for myself)
I've been trying to fix it but it seems that changing the color now causes it to CTD
For anyone else that doesn't want marked civilians change Line 5 to this.

Code:
--u_data.unit:contour():add( "mark_enemy" )
basically just put 2 dashes in front of it.
#4 · 12y ago
NI
nicki1314
same colour /.\??
#5 · 12y ago
SuperShifty
SuperShifty
Quote Originally Posted by nicki1314 View Post
same colour /.\??
Read the above post..
#6 · edited 12y ago · 12y ago
SuperShifty
SuperShifty
Could a Moderator please remove or mark this thread as outdated?
#7 · 12y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Does an087535 hacks works with xp and vista?By Mat17 in Combat Arms Hacks & Cheats
    29Last post 17y ago
  • How to connect to your IW5M 4D1 (Also works with Steam and Teknomw3)By nik nal in Call of Duty Modern Warfare 3 Private Server Hacks
    3Last post 13y ago
  • Working with sounds and attachmentsBy lalo9 in Combat Arms Mod Request
    0Last post 15y ago
  • Developing an aimbot that works with information stored in memory... Need assistanceBy ScottOwnsK in General
    2Last post 19y ago
  • [Tutorial]Working with cheatengine these daysBy System79 in WarRock - International Hacks
    1Last post 20y ago

Tags for this Thread

#2.0#lua#payday#payday 2#x-ray#xray#xray vision