MEMORY

Patch

Writes raw bytes at the given address.

Syntax

local ok = ONYX.Memory.Patch(address, hexString)

Parameters

  • address (integer) — Target address.
  • hexString (string) — Hex bytes, e.g. "90 90 90 90"; spaces optional; max 512 bytes.

Return(s)

boolean — true on success, false on failure.

Behavior

  • Writes raw bytes and handles page protection automatically.

Example(s)

ONYX.Memory.Patch(addr, "90 90 90 90 90 90")
ONYX.Memory.Patch(addr, "909090909090")