Aller au contenu
ATY ScriptsDocsMap EditorCommands

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.

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.

Renaming

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.