> For the complete documentation index, see [llms.txt](https://atiysus-organization.gitbook.io/aty-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atiysus-organization.gitbook.io/aty-scripts/map-editor/reference/commands.md).

# Commands

## Commands

Three commands, all renameable in `Config.Commands`.

### `/opencreator`

Opens the editor. Requires editor permission — see Permissions.

Registered through your framework when one is present (QBCore `Commands.Add`, ESX `RegisterCommand`), otherwise as a plain command. Permission is checked server-side either way, and every edit is re-checked, so the command registration is not the security boundary.

### `/cleanprops`

Validates every placed prop against the shipped object list and removes records whose model no longer exists.

Run it after:

* Removing a stream resource whose models you had placed
* Importing data from a server with different add-ons
* Seeing invisible props, or props that spawn as a floating question mark

Run from the server console it validates against the first connected player, since the check needs a client that has the game loaded.

### `/clearworldprops`

Restores **every** world prop that has ever been erased, server-wide.

{% hint style="danger" %}
No undo, no scope, no confirmation. It empties the whole suppression list. To restore one prop, use the **Deleted world props** tab instead — see World eraser.
{% endhint %}

### Renaming

```lua
Config.Commands = {
    OpenCreator     = "opencreator",
    CleanProps      = "cleanprops",
    ClearWorldProps = "clearworldprops",
}
```

Rename freely if another resource already owns one of the names. `/cleanprops` and `/clearworldprops` are registered as restricted commands, so they also need an ACE grant for their command principal, or console access.
