Beiträge von xFynni

    ne es war so das ich den Polizei Medic Mechaniker und Autohändler gewhitelisted hatte und den leuten den Job mit /setjob [is] [Job] [Job_grade] geben musste aber das ging nicht

    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

    wenn ich jemanden einen Job geben möchte oder Geld oder so kommt da Script error @essentialmode/server/Main.lua:264: attempt to Index a nil value (field '?'


    Bitte um Hilfe mfG

    ich würde mit helfen wenn das ok ist komm auf meinen ts ip: 149.202.249.207:6721


    also ich wollte halt auch einen machen aber wenn du einen hast und ein Team suchst dann helfe ich gerne also wie gesagt komm einfach auf meinen ts


    Also minze wollen wir oder nicht

    EDIT by LaprenoDE : Post's zu einem gepackt!
    Siehe Post MasterZyper