Code Monkey home page Code Monkey logo

jd_logsv3's People

Contributors

cyzxin avatar johnnys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jd_logsv3's Issues

Script Crashes when started

When i try to start the script i get this error. I placed the guild ID, and discord bot token... Any idea why its not working will appreciate all kind of support! Thanks in advance

script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:295: attempt to index a nil value (local 'rv')

[ script:JD_logsV3] > userCallback (@JD_logsV3/server/main.lua:295)
[ script:JD_logsV3] SCRIPT ERROR in promise (unhandled rejection): Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
[ script:JD_logsV3] > WebSocketManager.createShards (/root/FXServer/server-data/resources/JD_logsV3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250)
[ script:JD_logsV3] > async Client.login (/root/FXServer/server-data/resources/JD_logsV3/node_modules/discord.js/src/client/Client.js:254)
[ script:JD_logsV3]

Custom Logs

Somehow my Custom Logs (all logs in the category) dont work anymore, the default logs still work

An error occurred while calling export `createLog` in resource `JD_logsV3`

Hello,

I'm trying to get it to work, but it doesn't want to work:

I tried:

exports['JD_logsV3']:createLog({
      EmbedMessage = "Embed Message",
      channel = "tweet",
      title = 'Nieuwe tweet geplaatst door ' .. sourcePlayer ..' (' .. realUser .. ') met als bericht: ' .. message,
      color = '#A1A1A1',
      icon = '✅'
    })

and

exports.JD_logsV3:createLog({
       EmbedMessage = "Nieuwe tweet geplaatst door " .. sourcePlayer .." (" .. realUser .. ") met als bericht: " .. message,
       channel = "tweet",
       screenshot = false
     })

But both end up in giving the same error:
An error occurred while calling export `createLog` in resource `JD_logsV3`:

Can you help?

Server Crash

image

Wenn ich JD_Logs im Server mit starte Crasht der Server...,
wenn ichs ohne JD_logs starte geht alles.

Bad argument #2 to 'gsub' (string/function/table expected, go

Server Framework: ESX
Sever Version: 2802
Script Version: 3.14
Script error:

[    script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:82: bad argument #2 to 'gsub' (string/function/table expected, got nil)
[    script:JD_logsV3] > handler (@JD_logsV3/server/main.lua:82)
[    script:JD_logsV3] > fn (@dev-heli/server.lua:35)

Resource not starting

The JD logs resource isnt starting. Token and guild ID setup, so as all other channels. Tried to start it with no information, also dosent work.

ERROR IN CONSOLE

Any fix for that?
[ script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:176: bad argument #2 to 'gsub' (string/function/table expected, got nil)
[ script:JD_logsV3] > [global chunk] (@JD_logsV3/server/main.lua:176)

Issue with JD Vlogs

We are getting this Logged all the time.
script:JD_logsV3] DIR_GAS_CANISTER

Multibot Support

If i remember correctly there was a V3 Version that had support for multiple Bots
What happened with that Version? Because i liked it more than the "current" one.

Aborted request error

I've been using a older version of V3 for quite some time. I updated to your version and getting a error I can't quite pin point.
Any help would be greatly appreciated! :)
image

Issue with JD_logsV3

I'm not sure what the issue may be, however my boyfriend and I are trying to figure out how to set up our fivem logs to our discord page. Everything was done to the T based on the directions provided. Is it possible it's not working because of the resent fivem update? We tried an older version you guys' had provided, it worked for posting logs, but it didn't provide Steam ID's or licenses.

Script error in txAdmin console

Currently I receive the error below in txAdmin console:

[ script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:261: attempt to index a nil value (local 'rv')
[ script:JD_logsV3] > userCallback (@JD_logsV3/server/main.lua:261)

Is there any fix available for this?

Best regards,
Zxckeyy

Custom weapon logs

Hello!
I am currently trying to add weapon logs with custom weapons that I have, but adding only their hash to the clientTables.lua doesn't seem to work.

Eror DISALLOWED_INTENTS

[ script:JD_logsV3] SCRIPT ERROR in promise (unhandled rejection): Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
[ script:JD_logsV3] > WebSocketManager.createShards (/root/txData/QBCoreFramework_568EBC.base/resources/[dodatki]/JD_logsV3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250)
[ script:JD_logsV3] > async Client.login (/root/txData/QBCoreFramework_568EBC.base/resources/[dodatki]/JD_logsV3/node_modules/discord.js/src/client/Client.js:254)
[ script:JD_logsV3]

Screenshot command Problem

Hi, I have a new problem with JD_Logs_V3, in fact we have an error when we execute the command screenshot in Discord or In game.
We are on FxServer 6519.
How you can patch that ?
Thanks in advance

Capture d'écran 2023-06-23 131049

errors in console + question

First of all, I would like to ask how can I turn off those prints in the console? (screenshot attached)

image

ERRORS

First one:
[ script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:178: bad argument #2 to 'gsub' (string/function/table expected, got nil)
[ script:JD_logsV3] > handler (@JD_logsV3/server/main.lua:17

Second one:
[ script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:295: attempt to index a nil value (local 'rv')
[ script:JD_logsV3] > userCallback (@JD_logsV3/server/main.lua:295)

Chat logs not working

When I type something in the chat and nothing comes up in the log channel my configuration is set up correctly but nothing comes in.

Getting error on (@JD_logsV3/server/main.lua:178)

RegisterServerEvent('Prefech:JD_logsV3:playerShotWeapon') --[[ Shooting logs. ]]
AddEventHandler('Prefech:JD_logsV3:playerShotWeapon', function(weapon, count)
if Config.weaponLog then
--> ServerFunc.CreateLog({EmbedMessage = lang.shooting.msg:gsub("{name}", GetPlayerName(source)):gsub("{weapon}", weapon):gsub("{count}", count), player_id = source, channel = 'shooting'}) <--
end
end)

I think it's the gsub

New txAdmin update broke jdlogs

If you are experiencing errors in your console after updating your txAdmin more specifically the name change logs not working anymore revert your txAdmin to 6550.
Screenshot 2023-07-13 013719

@JD_logsV3/server/main.lua:178: bad argument #2 to 'gsub'

Hi,

I have added this bot as I love it.

However, when a user try to shoot it does not show on the discord and this error pop up.

Error code:

      script:monitor] [txAdminClient] Sending resources list to txAdmin.
[    script:JD_logsV3] New Screenshot Webhook Generated. (Old one got deleted)
[    script:JD_logsV3] SCRIPT ERROR: @JD_logsV3/server/main.lua:178: bad argument #2 to 'gsub' (string/function/table expected, got nil)

Can anyone advise?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.