> For the complete documentation index, see [llms.txt](https://fragmentdevelopment.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fragmentdevelopment.gitbook.io/fivem/paid-scripts/api/creating-an-action.md). Agents can also search and read this documentation through its [MCP server](https://fragmentdevelopment.gitbook.io/fivem/~gitbook/mcp).

# Creating an action

"Actions" are the functions defined to perform actions on our FiveM server. They range from executing the command from Discord to processing the request on the server.

#### Notes

* **Name of the action represents the command.**
* **You'll need to make changes in cs\_api\_ts and cs\_api.**

#### CS API TS Steps

1. Add the name of the action into Config.permissions.

#### CS API Steps

1. Go to @cs\_api/server/custom.lua and take an example from there.
