qb-core icon indicating copy to clipboard operation
qb-core copied to clipboard

[BUG] Shop open with keybind not working

Open promiiss033 opened this issue 1 year ago • 4 comments

Summary

cant open the shop with key E

Reproduction

dont have target enabled in the server config, but for someresone qb-shops wont open, error: qb-shops client > Main > 34, no such export keypressed in resource qb-core

local function listenForControl() if listen then return end CreateThread(function() listen = true while listen do if IsControlJustPressed(0, 38) then -- E exports['qb-core']:KeyPressed() TriggerServerEvent('qb-shops:server:openShop', { shop = currentShop }) listen = false break end Wait(0) end end) end

Expected behavior

..

Actual behavior

..

Additional context

..

Last Updated

latest version fresh install qb server

Custom Resources

n/a

Resource Rename

no

promiiss033 avatar Jul 25 '24 17:07 promiiss033

Do you have the latest version of both resources, and is the core started before all other resources?

kaynegraham avatar Jul 26 '24 04:07 kaynegraham

Do you have the latest version of both resources, and is the core started before all other resources?

Its a fresh install so yes i assume

promiiss033 avatar Jul 26 '24 04:07 promiiss033

Do you have target turn on on your server ?

brandon1808 avatar Jul 27 '24 17:07 brandon1808

-- TRY THIS --

local listen = false local currentShop = {} -- Ensure this is properly defined elsewhere

local function listenForControl() if listen then return end CreateThread(function() listen = true while listen do if IsControlJustPressed(0, 38) then -- E key exports['qb-core']:KeyPressed() TriggerServerEvent('qb-shops:server:openShop', currentShop) listen = false break end Wait(0) end end) end

TeamCR7 avatar Aug 02 '24 21:08 TeamCR7

This issue has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar Oct 02 '24 15:10 github-actions[bot]