Essentialmode fehler

  • Ohne die Codeausgabe ist es ein wenig schwer dir zu helfen!

    Zeile 264 besagt bei mir folgendes:

    Code
    1. function addAdminCommand(command, perm, callback, callbackfailed, suggestion, arguments)
    2. commands[command] = {}
    3. commands[command].perm = perm
    4. commands[command].group = "superadmin"
    5. commands[command].cmd = callback
    6. commands[command].callbackfailed = callbackfailed
    7. commands[command].arguments = arguments or -1

    Sprich also, wir benötigen mal den Code ab der Zeile 264 um dir zu sagen was bei dir da steht!

    logofc12.png

    Wer Hilfe benötigt, einfach im TS melden! Adresse: 62.141.43.204

  • das ist ab 264 bis ende



    source ~= 0)then

    if groups[Users[source].getGroup()]:canTarget(group) then

    if((#args <= commands[command].arguments and #args == commands[command].arguments) or commands[command].arguments == -1)then

    callback(source, args, Users[source])

    else

    TriggerEvent("es:incorrectAmountOfArguments", source, commands[command].arguments, #args, Users[source])

    end

    else

    callbackfailed(source, args, Users[source])

    end

    else

    if((#args <= commands[command].arguments and #args == commands[command].arguments) or commands[command].arguments == -1)then

    callback(source, args, Users[source])

    else

    TriggerEvent("es:incorrectAmountOfArguments", source, commands[command].arguments, #args, Users[source])

    end

    end

    end)


    debugMsg("Group command added: " .. command .. ", requires group: " .. group)

    end


    AddEventHandler('es:addGroupCommand', function(command, group, callback, callbackfailed, suggestion, arguments)

    addGroupCommand(command, group, callback, callbackfailed, suggestion, arguments)

    end)


    AddEventHandler('es:addACECommand', function(command, group, callback)

    addACECommand(command, group, callback)

    end)


    RegisterServerEvent('es:updatePositions')

    AddEventHandler('es:updatePositions', function(x, y, z)

    if(Users[source])then

    Users[source].setCoords(x, y, z)

    end

    end)


    -- Info command

    commands['info'] = {}

    commands['info'].perm = 2

    commands['info'].cmd = function(source, args, user)

    local Source = source

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {255, 0, 0}, "^2[^3EssentialMode^2]^0 Version: ^2 " .. _VERSION)

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {255, 0, 0}, "^2[^3EssentialMode^2]^0 Commands loaded: ^2 " .. (returnIndexesInTable(commands) - 1))

    end


    -- Dev command, no need to ever use this.

    commands["devinfo"] = {}

    commands["devinfo"].perm = math.maxinteger

    commands["devinfo"].group = "dev"

    commands["devinfo"].cmd = function(source, args, user)

    local Source = source

    local db = "CouchDB"

    if GetConvar('es_enableCustomData', 'false') == "1" then db = "Custom" end

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {25, 0, 0}, "^2[^3EssentialMode^2]^0 Version: ^2 " .. _VERSION)

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {25, 0, 0}, "^2[^3EssentialMode^2]^0 Groups: 2 " .. (returnIndexesInTable(groups) - 1))

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {25, 0, 0}, "^2[^3EssentialMode^2]^0 Commands loaded: ^2 " .. (returnIndexesInTable(commands) - 1))

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {25, 0, 0}, "^2[^3EssentialMode^2]^0 Database: ^2 " .. db)

    TriggerClientEvent('chatMessage', Source, 'SYSTEM', {25, 0, 0}, "^2[^3EssentialMode^2]^0 Logging enabled: ^2 " .. tostring(settings.defaultSettings.enableLogging))

    end

    commands["devinfo"].callbackfailed = function(source, args, user)end

  • Teste mal diese Version ;) essentialmode6.2.2


    logofc12.png

    Wer Hilfe benötigt, einfach im TS melden! Adresse: 62.141.43.204