---
title: "setarg | open.mp"
description: "Set an argument that was passed to a function."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/setarg
language: th
---

# setarg

## คำอธิบาย

Set an argument that was passed to a function.

| Name | Description |
| --- | --- |
| arg | The argument sequence number. Use 0 for the first argument. |
| index | The index (if the argument is an array). |
| value | The value to set the argument to. |

## ส่งคืน

\[edit\]

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   getarg: Retrieve an argument from a variable argument list.
-   numargs: Return the number of arguments.
