JohnnyS / JD_logsV3

JD Logs V3 by Prefech/JokeDevil. I was a admin on the discord, not sure what happened to him. This is no longer being maintained.
35 stars 26 forks source link

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

Closed Th3win3r closed 1 year ago

Th3win3r commented 1 year ago

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

Cyzxin commented 1 year ago

You are shooting a weapon that isn't listen in the clientTables.lua

Cyzxin commented 1 year ago

This error is resolved in V3.1.4, now it will print a warning to the console