Exports & Commands
The giveBlueprint Export
Function Signature
exports.lvs_crafting:giveBlueprint(playerId, recipeName, label)Parameters
playerId(number): Server ID of the target playerrecipeName(string): Recipe identifier fromConfig.Recipeslabel(string): Display label for the blueprint
Example Usage
-- Give a specific recipe blueprint
exports.lvs_crafting:giveBlueprint(playerId, 'lvs_stock_brakes', 'Stock Brakes Blueprint')
-- Give a shared blueprint (if recipe uses blueprint.name = 'brake_blueprint')
exports.lvs_crafting:giveBlueprint(playerId, 'brake_blueprint', 'Brake System Blueprint')Important Notes
The function checks if the player can carry the item before giving it
Blueprint metadata is automatically created with
durability = 100The
recipeNamemust exist inConfig.RecipesIf the recipe has
blueprint.name, that name is used; otherwise, the recipe name itself is used
Admin Command
An admin command is already registered:
Commands
Built-in Commands
Admin Only:
Gives a blueprint to a player.
playerId: Target player server IDrecipeName: Recipe identifier from Config.Recipeslabel: Display name (optional, uses recipe label if empty)
Last updated