Skip to content

Admin Commands

Core Crafting includes admin commands for managing player experience and blueprints.

Experience Commands

admin/addcraftexp
qb-coreesx

Adds crafting experience to a player. 100 XP = 1 level. QBCore uses addcraftexp, ESX uses givecraftexp.

ArgumentTypeDescription
player_idnumberThe player server ID
amountnumberAmount of XP to add
Usage
lua
-- Give player 5 a full level (100 XP)
/addcraftexp 5 100

-- ESX equivalent
/givecraftexp 5 100
admin/setcraftexp
qb-coreesx

Sets a player's crafting experience to an exact value. Overwrites any existing XP.

ArgumentTypeDescription
player_idnumberThe player server ID
amountnumberXP value to set
Usage
lua
-- Set player 5 to level 10 (1000 XP)
/setcraftexp 5 1000

Blueprint Commands

admin/giveblueprint
qb-coreesx

Grants a specific blueprint to a player. The item must be a recipe with requireBlueprint = true.

ArgumentTypeDescription
player_idnumberThe player server ID
item_namestringRecipe key from Config.Recipes
Usage
lua
-- Give player 5 the pistol blueprint
/giveblueprint 5 weapon_pistol

-- Give player 5 the first aid blueprint
/giveblueprint 5 firstaid

INFO

All commands require admin permissions. The item_name argument must match a recipe key in Config.Recipes that has requireBlueprint = true.