Exports

orbit-craftingsystem - Exports for the resource.

Server Side Exports

CreateBlueprint - Creates blueprint using the resources own system.

This export gives a blueprint for a specified item to a specified player.

-- @param targetPlayer int - The target players source/server ID.
-- @param blueprintName string - The name of the blueprint item.
-- @param amount int - The amount of blueprints to give.
exports['orbit-craftingsystem']:CreateBlueprint(targetPlayer, blueprintName, amount)

The export gives a blueprint for a specified item to a specified player.

getPlayerLevel - Returns data about the players level and experience (XP).

This export returns the level and xp of a specified player.

-- @param source number - The server ID of the player.
-- @return number level - The player's current level.
-- @return number xp - The player's current experience points.
exports['orbit-craftingsystem']:getPlayerLevel(source)

-- Usage Example
local level, xp = exports['orbit-craftingsystem']:getPlayerLevel(source)

The export gives a blueprint for a specified item to a specified player.

Data:

level - Crafting level of the player.

xp - Crafting experience (XP) of the player.

getItemData - Returns a specified items data from the config.

This export returns a specified items data from the config in the exact same format as the config.

The export gives a blueprint for a specified item to a specified player.

Data:

itemData - A table of the items data in the same format as it is in the config.

Last updated