Driver Calls
You can read a memory address of CS2 using kernel driver calls. Different types need to be read differently, that's why its important to use the right driver call.
local bool = ReadBool(0x1234)
local int = ReadInt(0x1234)
local float = ReadFloat(0x1234)
local string = ReadString(0x1234)
local pointer = ReadPointer(0x1234)
local vector3d = ReadVector3D(0x1234)
Currently you can only get the address of Client.dll and Engine2.dll by default.
local client_dll = GetClientDLL()
local dwLocalPlayerPawn = 0x1234
local function Test()
local LocalPlayerPawn = ReadPointer(client_dll + dwLocalPlayerPawn)
if LocalPlayerPawn == 0 then
return
end
Print(tostring(LocalPlayerPawn))
end
RegisterCallback(Test)
local engine2_dll = GetEngine2DLL()
local dwBuildNumber = 0x1234
local function Test()
local BuildNumber = ReadInt(engine2_dll + dwBuildNumber)
Print(tostring(BuildNumber))
end
RegisterCallback(Test)
Last updated on
Was this page helpful?