swkeep / keep-containers

qbcore esx sotrage container
GNU General Public License v3.0
83 stars 21 forks source link

Script Error for Legacy Server (OX) #7

Open Bassprojekt opened 1 year ago

Bassprojekt commented 1 year ago

Look Screen: https://gyazo.com/4ade645672d89be0ef995323ee7ab474

Bassprojekt commented 1 year ago

Okay maybe could have been my mistake :D currently I have now but no error message it Nehmlich translated into German there was an error in it.

Furthermore, I can not break my own container when I'm on duty as a police is that so wanted how can I set a container because I can break that I'm still missing something like the Youtube video otherwise a very good and beautiful script =)

swkeep commented 1 year ago

Hey, I'm so confused. Is it working or not? 🤔 The way Boltcutter works makes sense to me, but I'll check if there's something wrong with it tomorrow. I'm a bit tired today.

Bassprojekt commented 1 year ago

it runs everything wonderfully now the only problem which I have now if I have the job as policy I cannot open my own container with the Boltcutter. Furthermore when I set myself as admin -- just give it to admins they can access containers and remove them!

Config.super_users = { ["Gxxxxxxx2"] = true, -- < in qb use character citizen id ["char1:a5b42899557be5839be582f7b1e90bae17cfcbb"] = true --- < in esx use users's identifier

So it stands in the Config from the Script with me the char1 ID is exactly my ID of the Char. Only unfortunately I have no admin to delete the containers in game

Oh I use ESX Legacy on the server if that is still important

swkeep commented 1 year ago

I don't know. I tested it on my ESX development server, and it works fine. The only issue is that it takes some time to update the player's job for some reason. However, after that, it works as it should. Admin access also works fine, so I'm not sure (I tested it on version 1.9).

Bassprojekt commented 1 year ago

Ok I have found the error because of Admin that comes when you have 1000 things on and just forget a number :D Now it works with the admin system only one thing I have not yet managed with the policy.

with me it looks like this

Config.bolt_cutter = { -- ['jobname'] = {grades} ['police'] = { -- [grade(number)] = true/false [0] = true, [1] = true, [2] = true, [3] = true, [4] = true

is that right or am i doing something wrong there?

anes66 commented 1 year ago

Okay maybe could have been my mistake :D currently I have now but no error message it Nehmlich translated into German there was an error in it.

Furthermore, I can not break my own container when I'm on duty as a police is that so wanted how can I set a container because I can break that I'm still missing something like the Youtube video otherwise a very good and beautiful script =)

I have same error with the client.lua 51 line can you say what you fixed maybe??