| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| Frouk Grandmaster Cheater
 
 ![]() Reputation: 5 
 Joined: 22 Jun 2021
 Posts: 512
 
 
 | 
			
				|  Posted: Thu Apr 07, 2022 7:00 am    Post subject: Functions for value types |   |  
				| 
 |  
				| This lua script can be used as extension(extension for yourself of course, but if you will make table, functions won't apply into table), as module for Cheat Engine table Functions and their usage:
 writeBoolean(address,bool)
 readBoolean(address)
 writeBool(address,bool)
 readBool(address)
 writeVector(address,vector,isDouble,is2D)
 readVector(address,isDouble,is2D)
 
 make sure that vector will be table with x y z , otherwise it won't execute, functions are returning bool on success or table(for vector) with x y z
 
 UPDATE:
 now this update brings you vectors(vector 2d and vector 3d), you can substract, add them like in casual (table - table1) or (table + table1)
 
 
 
 
	
		
	 
		| Description: |  |  Download
 |  
		| Filename: | moreValueTypes.LUA |  
		| Filesize: | 2.94 KB |  
		| Downloaded: | 1751 Time(s) |  
 
 Last edited by Frouk on Thu May 05, 2022 1:58 pm; edited 1 time in total
 |  |  
		| Back to top |  |  
		|  |  
		| LeFiXER Grandmaster Cheater Supreme
 
 ![]() Reputation: 20 
 Joined: 02 Sep 2011
 Posts: 1069
 Location: 0x90
 
 | 
			
				|  Posted: Thu Apr 07, 2022 9:00 am    Post subject: |   |  
				| 
 |  
				| Just so you know, boolean = byte value. 
  	  | Code: |  	  | readByte(): integer
 writeByte(integer)
 readWord(): integer
 writeWord(integer)
 readDword(): integer
 writeDword(integer)
 readQword(): integer
 writeQword(integer)
 readAnsiString(): string
 writeAnsiString(string)
 
 | 
 |  |  
		| Back to top |  |  
		|  |  
		| Frouk Grandmaster Cheater
 
 ![]() Reputation: 5 
 Joined: 22 Jun 2021
 Posts: 512
 
 
 | 
			
				|  Posted: Thu Apr 07, 2022 9:08 am    Post subject: |   |  
				| 
 |  
				|  	  | LeFiXER wrote: |  	  | Just so you know, boolean = byte value. 
  	  | Code: |  	  | readByte(): integer
 writeByte(integer)
 readWord(): integer
 writeWord(integer)
 readDword(): integer
 writeDword(integer)
 readQword(): integer
 writeQword(integer)
 readAnsiString(): string
 writeAnsiString(string)
 
 | 
 | 
 i know, i just made function with bool to write it into address like:
 writeBool(address,true)
 |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | You cannot post new topics in this forum You cannot reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot vote in polls in this forum
 You cannot attach files in this forum
 You can download files in this forum
 
 |  |