qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
50 stars 379 forks source link

[BUG] stashes wont open #582

Open CottonMouthMax opened 2 weeks ago

CottonMouthMax commented 2 weeks ago

Summary

the stashes wont open for players. i have tried redownloading from code source and it does the same thing

Reproduction

  1. start server
  2. log in
  3. try to open stash
  4. stash doesnt open/ no ui

Expected behavior

the stash opens

Actual behavior

press e to open stash. it doesnt do anything

Additional context

No response

Last Updated

got from the code source today.

Custom Resources

qs housing, qs smartphone

Resource Rename

qb-inventory

CxCore-xyz commented 2 weeks ago

You need to implement the new qb-inventory exports in qs-housing for it to work!

The code:

client/custom/inventory/default.lua or qs-inventory.lua -- depends on your config file

TriggerServerEvent('qs-housing:server:openNewqbInv', uniq) -- change it where there qb-inventory trigger 

server/qb-inventoryfix.lua -- you need to create this file and add it to fxmanifest or just use an existing server side files

local QBCore = exports['qb-core']:GetCoreObject()

RegisterNetEvent('qs-housing:server:openNewqbInv', function(stashname) local src = source local Player = QBCore.Functions.GetPlayer(src) if not Player then return end exports['qb-inventory']:OpenInventory(src, stashname, { maxweight = Config.DefaultStashData.maxweight, slots = Config.DefaultStashData.slots, }) end)

CottonMouthMax commented 2 weeks ago

Would this be the same route for qs-housing? i added it does the same as the OG qb script

CxCore-xyz commented 2 weeks ago

Would this be the same route for qs-housing? i added it does the same as the OG qb script

The code i showed you is for the qs-housing i fixed mine with that code because the developer of the script is to lazy to add an option to config for new inventory and new qb-garages script.

BugzeeDev commented 1 day ago

Would this be the same route for qs-housing? i added it does the same as the OG qb script

The code i showed you is for the qs-housing i fixed mine with that code because the developer of the script is to lazy to add an option to config for new inventory and new qb-garages script.

would you be able to show me the grages fix? I am having a similar issue with the housing making garages that are accessible.