| nirvada How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 18 Feb 2024
 Posts: 9
 
 
 | 
			
				|  Posted: Fri Jan 24, 2025 2:36 am    Post subject: How i get symbol as value not as address to calculate |   |  
				| 
 |  
				| how i extract CPVehicle value to get CVehicle symbol address 
 
  	  | Code: |  	  | [ENABLE]
 {$lua}
 if syntaxcheck then return end
 
 local PS2mem = getAddress("pcsx2-qt.EEmem")
 PS2mem = readPointer(PS2mem)
 
 if PS2mem then
 -- Define the offsets
 local CPVehicleOffset = 0x06FF420
 local CVehicleOffset = 0xE0
 
 -- Resolve CPVehicle
 local CPVehicle = readPointer(PS2mem + CPVehicleOffset)
 if CPVehicle then
 CPVehicle = CPVehicle + 0x4B4
 registerSymbol("CPVehicle", CPVehicle, false)
 
 -- Get the value stored at CPVehicle and add 0xE0
 local CPVehicleValue = readInteger(CPVehicle)
 if CPVehicleValue then
 local CVehicle = CPVehicleValue + CVehicleOffset
 registerSymbol("CVehicle", CVehicle, false)
 end
 end
 end
 
 [DISABLE]
 unregisterSymbol("CPVehicle")
 unregisterSymbol("CVehicle")
 | 
 
 
 
 
	
		
	 
		| Description: |  |  
		| Filesize: | 21.68 KB |  
		| Viewed: | 6228 Time(s) |  
		| 
  
 
 |  
 
 
	
		
	 
		| Description: | 
			
				| i was wondering if this still pulling CPVehicle Address value but not the value of that address |  |  
		| Filesize: | 6.29 KB |  
		| Viewed: | 6232 Time(s) |  
		| 
  
 
 |  
 
 
	
		
	 
		| Description: | 
			
				| CVehicle value is 0x00ABBA30 |  |  
		| Filesize: | 6.43 KB |  
		| Viewed: | 6232 Time(s) |  
		| 
  
 
 |  
 
 
	
		
	 
		| Description: |  |  
		| Filesize: | 7.21 KB |  
		| Viewed: | 6232 Time(s) |  
		| 
  
 
 |  
 
 Last edited by nirvada on Fri Jan 24, 2025 6:20 pm; edited 1 time in total
 |  |