---
title: "argstr | open.mp"
description: "Get the string value of an argument by name."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/argstr
language: th
---

# argstr

## Description

Get the string value of an argument by name.

| Name | Description |
| --- | --- |
| skip = 0 | The number of arguments (with potentially the same name) to skip. |
| const argument\[\] = "" | The name of the argument, including `-`s and `/`s. |
| value\[\] = "" | The output string destination. |
| size = sizeof (value) | The size of the destination. |
| bool:pack = false | Should the return value be packed? |

## Returns

**true** - the argument was found, **false** - it wasn't.

## Related Functions

-   [argcount](https://omp.itsneufox.com/th/docs/scripting/functions/argcount): Get the number of arguments passed to the script (those after --).
-   [argindex](https://omp.itsneufox.com/th/docs/scripting/functions/argindex): Get the name of the argument at the given index after --.
-   [argvalue](https://omp.itsneufox.com/th/docs/scripting/functions/argvalue): Get the number of arguments passed to the script (those after --).
