#Commands not working
1 messages · Page 1 of 1 (latest)
Istg, I am about to rip my hair out - I have no clue where to even start. Am I like the only this has ever happened to?
yes
you are
so you have something like this in your cfgs?
add_principal identifier.fivem:123456 group.admin #MatthewTM
doesnt have to be fivem. thats just what i have
That's exactly what I have which is why it makes me even more confused, seems to be nothing out of the ordinary
I had something like this on QBcore but i cant remember How i fixes it. I will think Maybe i remember.
Do you put anything in the Server After this ist happend that you cant use /commands
Like a snipped or a script with permissions
Or you Translate something wrong?
After this occured, I have not added any new resources. This issue started after installing lation's 'Advanced Weed Growing' however I doubt that is what is causing the issues. I also changed the config of my dispatch I was provided with by support. But then again, I don't see how that could be causing issues with commands
I am trying to figure out what could be causing this but honestly I am so lost, surely there would be some errors?
i know i haved bevor as well and it comes random and i get it back after
you changed something in your start order (server.cfg)
you working with split cfg data
Split?
like
- Server.cfg
- ox.cfg
- Permission.cfg
Only thing changed in cfg was qbx-npwd and npwd being removed
But then again, that shouldn't have played a role in commands?
no just asking because of the order line in the server.cfg
Right, honestly all out of guesses at this point - I've been trying to figure this out for the past 24 hours with no luck
Reinstallation of npwd did not fix it unfortunately
try to find where your perission break. Like you have a red text in your Server log or Client log on F8
If I have any errors?
yes
No errors in server log
even when you start the whole server no error?
I have a few in F8, illenium appearance 'blip' and qbx_customs 'blip'
Nothing out of the ordinary
These were also present prior to my issue
Nothing new
you using multichar? other then the Qbox standard one?
Negative
ok.
you have something like a red error called Identifier?
Negative, nothing like that - when restarting the server I was only presented with this error
thats just qbx_customs a tuner like thats not relevant for it
Ofcourse, therefor I have no clue what could be causing it
you have this?
add_ace group.admin command allow # allow all commands
Where would that be located?
permissions.cfg?
Seems to be yeah
# Resources
add_ace resource.qbx_core command allow # Allow qbx_core to execute commands
# Ox_lib
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
# Ace Groups
add_ace group.admin admin allow
add_ace group.mod mod allow
add_ace group.support support allow
# Inheritance
add_principal group.admin group.mod
add_principal group.mod group.support```
# Admin
add_principal identifier.discord:xxxxxxxxxxx group.admin #Admin 1
add_principal identifier.steam:xxxxxxx group.admin #Admin 2
add_principal identifier.steam:xxxxxx group.admin #Admin 3
add_principal identifier.license2:xxxxxxxxx group.admin #Admin 4
add_ace group.admin command allow # allow all commands <---------here
# Moderator
add_principal identifier.discord:xxxxxxxxxxx group.admin #Moderator 1
add_principal identifier.steam:xxxxxxx group.admin #Moderator 2
# Supporter
add_principal identifier.discord:xxxxxxxxxxx group.admin #Supporter 1
add_principal identifier.steam:xxxxxxx group.admin #Supporter 2
Thats how i did it. dont know if all is right to be true
but the Position dont really make a diffrent solong it is in the Permission.cfg under Admin
You mind if I replace mine with it too see if I was missing some perms?
just put this line i give you under your Admin Permission than restart server and try
if it dont help we will find a other solution
Which line?
# Admin
add_ace group.admin command allow # allow all commands <---------here
just this
Thats a ace permission for Commands
Ok that was a try 🙂
Yeah, no clue where to go from here 🤣
I thing a Little about. I have that on qb bevor but cant remember How i get my permissions Back
Right, just sucks if everything has to be reinstalled and shit like that
This is where I get lost, I have access to some commands - but those mentioned above seems to have 'vanished' like they were never a feature?
Initially when looking at commands.lua (uneducated guess) it seems like all the commands are still there intact and locked to 'group.admin' which obviously I have
lib.addCommand('tp', {
help = locale('command.tp.help'),
params = {
{ name = locale('command.tp.params.x.name'), help = locale('command.tp.params.x.help'), optional = false },
{ name = locale('command.tp.params.y.name'), help = locale('command.tp.params.y.help'), optional = true },
{ name = locale('command.tp.params.z.name'), help = locale('command.tp.params.z.help'), optional = true }
},
restricted = 'group.admin'
}, function(source, args)
if args[locale('command.tp.params.x.name')] and not args[locale('command.tp.params.y.name')] and not args[locale('command.tp.params.z.name')] then
local target = GetPlayerPed(tonumber(args[locale('command.tp.params.x.name')]) --[[@as number]])
if target ~= 0 then
local coords = GetEntityCoords(target)
TriggerClientEvent('QBCore:Command:TeleportToPlayer', source, coords)
else
Notify(source, locale('error.not_online'), 'error')
end
else
if args[locale('command.tp.params.x.name')] and args[locale('command.tp.params.y.name')] and args[locale('command.tp.params.z.name')] then
local x = tonumber((args[locale('command.tp.params.x.name')]:gsub(',',''))) + .0
local y = tonumber((args[locale('command.tp.params.y.name')]:gsub(',',''))) + .0
local z = tonumber((args[locale('command.tp.params.z.name')]:gsub(',',''))) + .0
if x ~= 0 and y ~= 0 and z ~= 0 then
TriggerClientEvent('QBCore:Command:TeleportToCoords', source, x, y, z)
else
Notify(source, locale('error.wrong_format'), 'error')
end
else
Notify(source, locale('error.missing_args'), 'error')
end
end
end)```
This is a shot in the dark, could it be that the artifacts are outdated?
just try 😉 artefakt update is easy and fix to do
Did not seem to fix it, unfortunately I saw the only way being to start all over xD
They vanish for me too but after restarting the server they appear again I do not know what causes this
Are u self hosting ? With a shi ton of resources ?
Well they don’t vanish but for example /setjob usually has id job and grade in the box but sometimes it doesn’t show that
Keep track of what things u edit , if it happens again you’ll know what u did that broke it
Yes I believe I had around 60 resources apart from what came with QBox, issue has been solved as of now however as I started a new localhost instead of wasting more time
Always have an up to date arifiact doesn’t have to be the most recent one but in the console it should not say it’s outdated if it does just update it
So not really 'resolved', but no point in trying to figure out the issue any longer
I got the latest for the new hosting, same resources as before and have had no issues so far
Okay good to hear :)