# Commands (/docs/orbit-studios-resources/orbit-craftingsystem/commands)



# Commands [#commands]

Commands are typed in the FiveM chat by a player with permission, or executed from the server console when supported. The crafting system currently exposes one developer command for giving blueprint items during setup and testing.

<TypeTable
  type="{
  createblueprint: {
    type: 'command',
    description: 'Developer-mode command for creating blueprint items. Parameters: target player ID, blueprint item name, optional amount.',
  },
}"
/>

`createblueprint` is only available when developer mode is enabled.

```lua title="resources/[orbit]/orbit-craftingsystem/shared/config.lua"
Config.DeveloperMode = true
```

Turn developer mode back off after setup if you do not want this test command available on production servers.

## Parameters [#parameters]

<TypeTable
  type="{
  targetPlayer: {
    type: 'number',
    required: true,
    description: 'Server ID of the player who should receive the blueprint item.',
  },
  blueprintName: {
    type: 'string',
    required: true,
    description: 'Blueprint content/item name to store in the created blueprint item.',
  },
  amount: {
    type: 'number',
    default: '1',
    description: 'Number of blueprint items to create.',
  },
}"
/>

```text title="FiveM console"
/createblueprint 12 weapon_pistol
/createblueprint 12 weapon_pistol 3
```

The first example gives player ID `12` one blueprint that unlocks `weapon_pistol`. The second example gives the same player three blueprint items.

`blueprintName` must match a key in `Config.Blueprints.items`, not the display label. If you use `Config.CustomBlueprints`, the command still receives the original blueprint content name, such as `weapon_pistol`.

## Permission Notes [#permission-notes]

The command is registered as restricted and developer-mode gated. If the chat suggestion appears but nothing happens, check the server console for the developer-mode warning first, then confirm the player running the command has permission to use restricted commands.
