REP
  • Welcome to Rep Scripts
  • Free Scripts
    • rep-talkNPC
    • rep-rental
  • Paid Scripts
    • rep-weed
      • Read Me
      • Installation
        • SQL
        • Joints, carry, player metadata
        • Inventory
          • ox_inventory
          • old-qb-inventory
          • new-qb-inventory
          • qs-inventory
    • rep-chopshop
Powered by GitBook
On this page
  • Remove default joint functions:
  • qb-core:
  • qbx_core:
  • Carry:
  • Player metadata:
  • qb-core:
  • qbx_core:
  1. Paid Scripts
  2. rep-weed
  3. Installation

Joints, carry, player metadata

PreviousSQLNextInventory

Last updated 4 months ago

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 : Add this inside local props = {}

["weedpackage"] = { carry = true, model = "hei_prop_heist_weed_block_01", bone = 28422, x = 0.01, y = -0.02, z = -0.12, xr = 0.0, yr = 0.0, zr = 0.0, blockAttack = true, blockCar = true, blockRun = true},
weedpackage = {
        model = `prop_idol_case_01`,
        pos = vec3(-0.20, 0.43, 0.05),
        rot = vec3(91.0, 0.0, -265.0),
        bone = 24817,
        dict = 'anim@heists@box_carry@',
        anim = 'idle',
        disableKeys = {
            disableSprint = true,
            disableJump = true,
            disableAttack = true,
            disableVehicle = true
        }
},

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

With new :

Renewed-WeaponCarry
Renewed-WeaponCarry