renzuzu / renzu_motels

Fivem - Motel Management. Hourly Rental System. Supports MLO and Shells. ESX/QBCORE
GNU General Public License v3.0
101 stars 41 forks source link

unable to generate keys #56

Open pacmoney3000 opened 1 year ago

pacmoney3000 commented 1 year ago

I'm using ox inventory and esx framework I keep having this problem where every time I rent a room it says 'unable to generate a key'.

OrIoN7531 commented 1 year ago

I'm using ox inventory and esx framework I keep having this problem where every time I rent a room it says 'unable to generate a key'.

Swap local items = GetInventoryItems('keys')

for local items = exports.ox_inventory:GetSlotsWithItem('keys') in client/main.lua

DoesPlayerHaveKey & GetPlayerKeys

Can't post whole code since I did tons of edits to make ti work with ox_doorlock but this should work for you...

carsy77 commented 1 year ago

Hello, I have the problem here that I don't get any keys. If I rent a room and go to the hotel room door, I don't get any draw text or I can't interact with qb-target. I added a key to my items.lua. I use QB-Core and QS-Invéntory and the shells. Where is my mistake?

OrIoN7531 commented 1 year ago

Hello, I have the problem here that I don't get any keys. If I rent a room and go to the hotel room door, I don't get any draw text or I can't interact with qb-target. I added a key to my items.lua. I use QB-Core and QS-Invéntory and the shells. Where is my mistake?

Where did u read that it does support qs...

carsy77 commented 1 year ago

I haven't read anything about it. The bridge/inventory directory contains the quasargago.lua file with trigger events for QS inventory.