> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/memory/write-memory.md).

# Write Memory

Writes one value of the given type. Accepts integers, floats, booleans, and numeric strings. Returns true on success.

## **Syntax**

```lua
refresh.Memory.WriteMemory(address, type, value) -> Boolean
```

## **Return**

{% hint style="success" %}
Boolean (success)
{% endhint %}

## Usage Example

```lua
refresh.Memory.WriteMemory(0x140000000, "i32", 100)
```
