Joints, carry, player metadata
Remove default joint functions:
qb-core:
QBCore.Functions.CreateUseableItem("joint", function(source, item)
local Player = QBCore.Functions.GetPlayer(source)
if not Player.Functions.RemoveItem(item.name, 1, item.slot) then return end
TriggerClientEvent("consumables:client:UseJoint", source)
end)qbx_core:
exports.qbx_core:CreateUseableItem('joint', function(source)
TriggerClientEvent('consumables:client:UseJoint', source)
end)Carry:
Player metadata:
qb-core:
qbx_core:
Last updated