Item crafted

Triggered when a player crafts an item in crafting table marker

Event

RegisterNetEvent("jobs_creator:crafting_table:craftedItem", function(playerId, markerId, itemName, itemQuantity)

end)

Parameters

NameData TypeDescription

playerId

integer

Player's server ID

markerId

integer

Marker ID

itemName

integer

Crafted item name

itemQuantity

integer

Crafted item quantity

Example

RegisterNetEvent("jobs_creator:crafting_table:craftedItem", function(playerId, markerId, itemName, itemQuantity)
    TriggerEvent("xp_system:addExperience", playerId, "craft")
end)

Last updated