Integrate the **NextGen FiveM Crafting** resource with other scripts and systems using these server-side exports. Each export provides functionality to manage blueprints, levels, and crafting benches seamlessly.
Server Exports
getPlayerBlueprints
Retrieves a table containing the player's blueprints.
givePlayerBlueprint
Grants a blueprint to a player. Returns a boolean indicating success.
removePlayerBlueprint
Removes a blueprint from a player. Returns a boolean indicating success.
getPlayerLevel
Retrieves the player's current crafting level.
setPlayerLevel
Sets the player's global crafting level. Returns a boolean indicating success.
setPlayerCategoryLevel
Sets the player's level for a specific crafting category. Returns a boolean indicating success.
givePortableItem
Gives a player a portable crafting bench item. Returns a boolean indicating success.
setEntityAsBench
Assigns an entity as a crafting bench. Returns a boolean indicating success.
removeEntityAsBench
Removes an entity from being a crafting bench. Returns a boolean indicating success.
setCoordAsBench
Assigns a coordinate as a crafting bench. Returns a boolean indicating success.
getBenchModels
Retrieves a table containing the models for all crafting benches.