Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] stashes wont open #582

Open
CottonMouthMax opened this issue Sep 23, 2024 · 6 comments
Open

[BUG] stashes wont open #582

CottonMouthMax opened this issue Sep 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@CottonMouthMax
Copy link

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

@CottonMouthMax CottonMouthMax added the bug Something isn't working label Sep 23, 2024
@CxCore-xyz
Copy link

CxCore-xyz commented Sep 24, 2024

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
Copy link
Author

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

@CxCore-xyz
Copy link

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.

@SylvaDev
Copy link

SylvaDev commented Oct 8, 2024

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.

@Mitch-Altman
Copy link

Im having the same issue but with just regular qb as a clean framework. The stashes wont open at all.

@Yeti1123
Copy link

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants