#Commands not working

1 messages · Page 1 of 1 (latest)

sage mirage
#

Can't use the majority of / commands.

Here are a few I am unable to use: /tpm, /tp, /setjob, /job, /car /logout

Unsure what is causing this, I have admin perms and can still use /tx & /adminmenu.

sage mirage
#

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?

leaden citrus
#

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

sage mirage
#

That's exactly what I have which is why it makes me even more confused, seems to be nothing out of the ordinary

hushed inlet
#

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?

sage mirage
#

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?

hushed inlet
#

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

sage mirage
hushed inlet
#

like

  • Server.cfg
  • ox.cfg
  • Permission.cfg
sage mirage
#

Only thing changed in cfg was qbx-npwd and npwd being removed

#

But then again, that shouldn't have played a role in commands?

hushed inlet
#

no just asking because of the order line in the server.cfg

sage mirage
#

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

hushed inlet
#

try to find where your perission break. Like you have a red text in your Server log or Client log on F8

sage mirage
#

If I have any errors?

hushed inlet
#

yes

sage mirage
#

No errors in server log

hushed inlet
#

even when you start the whole server no error?

sage mirage
#

I have a few in F8, illenium appearance 'blip' and qbx_customs 'blip'

sage mirage
#

These were also present prior to my issue

#

Nothing new

hushed inlet
#

you using multichar? other then the Qbox standard one?

sage mirage
#

Negative

hushed inlet
#

ok.

you have something like a red error called Identifier?

sage mirage
#

Negative, nothing like that - when restarting the server I was only presented with this error

hushed inlet
#

thats just qbx_customs a tuner like thats not relevant for it

sage mirage
#

Ofcourse, therefor I have no clue what could be causing it

hushed inlet
#

you have this?

add_ace group.admin command allow # allow all commands

sage mirage
#

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```
hushed inlet
#

# 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

sage mirage
#

You mind if I replace mine with it too see if I was missing some perms?

hushed inlet
#

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

hushed inlet
#

# Admin
add_ace group.admin command allow # allow all commands <---------here


just this

#

Thats a ace permission for Commands

sage mirage
#

That did not do anything

#

I also already have that line in permissions.cfg

hushed inlet
#

Ok that was a try 🙂

sage mirage
#

Yeah, no clue where to go from here 🤣

hushed inlet
#

I thing a Little about. I have that on qb bevor but cant remember How i get my permissions Back

sage mirage
#

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?

sage mirage
#

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?

hushed inlet
#

just try 😉 artefakt update is easy and fix to do

sage mirage
edgy lantern
#

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

edgy lantern
sage mirage
#

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

edgy lantern
sage mirage
#

So not really 'resolved', but no point in trying to figure out the issue any longer

sage mirage
edgy lantern
#

Okay good to hear :)