Error es_extended (Fivem to Discord Bot)

I’m trying to put the fivem to discord bot to give to register in my discord all the commands of the es_extended, but it is giving an error, however I managed to put the commands to appear in the discord ex: / car t20 and in discor it says I used this command but the car does not spawn because it has an error I saw this error in the console:

InvokeNative: execution failed: Argument at index 0 was null.
Error loading script server/commands.lua in resource es_extended: Execution of native 00000000406b4b20 in script host failed.
stack traceback:
        [C]: in upvalue '_in'
        citizen:/scripting/lua/natives_server.lua:178: in function 'GetPlayerName'
        server/commands.lua:1: in main chunk
Failed to load script server/commands.lua.

line (1) error:

TriggerEvent('DiscordBot:ToDiscord', 'chat', GetPlayerName(id) .. ' [ID: ' .. GetPlayerServerId(id) .. ']', data.message, 'steam', GetPlayerServerId(id), false, true)

Please ask in the topic where you got the resource.