Guides
Memory
Memory
byte ReadByte( ulong address );
byte[] ReadBytes( ulong address, int length );
short ReadShort( ulong address, bool signed = true );
short[] ReadShorts( ulong address, int length, bool signed = true );
int ReadInt( ulong address );
int[] ReadInts( ulong address, int length );
int64 ReadInt64( ulong address );
int64[] ReadInt64s( ulong address, int length );
float ReadFloat( ulong address );
float[] ReadFloats( ulong address, int length );
string ReadString( ulong address, int length = 0 );
string ReadIString( ulong address );
void WriteString( ulong address, string value );
void WriteByte( ulong address, byte value );
void WriteBytes( ulong address, byte[] value );
void WriteShort( ulong address, uint16[] value );
void WriteShorts( ulong address, uint16 value );
void WriteInt( ulong address, int value );
void WriteInts( ulong address, int[] value );
void WriteInt64( ulong address, int64 value );
void WriteInt64s( ulong address, int64[] value );
void WriteFloat( ulong address, float value );
void WriteFloats( ulong address, float[] value );
ulong GetBaseAddress();
ulong GetAddress( uint relative );Usage
player_noclip(player)
{
if (!isDefined(player))
return;
client_flags = CLIENT_NOCLIP + (player GetEntityNumber() * 0x366C);
current_flags = readByte(client_flags);
writeByte(client_flags, current_flags != 0x02 ? 0x02 : 0x00);
}Last updated on