Joints, carry, player metadata

Remove default joint functions:

qb-core:

Go to qb-smallresources\server\consumables.lua and remove this block of code

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:

Go to qbx_smallresources\qbx_consumables\server.lua and remove this block of code

exports.qbx_core:CreateUseableItem('joint', function(source)
    TriggerClientEvent('consumables:client:UseJoint', source)
end)

Carry:

With old Renewed-WeaponCarry: Add this inside local props = {}

With new Renewed-WeaponCarry:

Player metadata:

qb-core:

Go to qb-core\config.lua

  1. Search for:

metadata = {

hunger = 100,

thirst = 100,

  1. Add:

weed_rep = 0,

qbx_core:

Go to qbx_core\server\player.lua

  1. Search for:

function CheckPlayerData(source, playerData)

  1. Add:

playerData.metadata.weed_rep = playerData.metadata.weed_rep or 0

Last updated