Skip to content

Commit

Permalink
Resolve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Scullyy committed Apr 17, 2024
1 parent fa4bbd6 commit 19fb017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/reports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ function GenerateReportMenu()
}, function(selected)
local reportOption = reportOptions[selected]

if not reportOption then
if not reportOption then
lib.showMenu(('qbx_adminmenu_reports_menu_%s'):format(report.id), MenuIndexes[('qbx_adminmenu_reports_menu_%s'):format(report.id)])
return
return
end

reportOption(report)
Expand Down
4 changes: 1 addition & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ end
--- @param source string - The player's ID
--- @param message string - Message for the report
function SendReport(source, message)
local player = exports.qbx_core:GetPlayer(source)
local charinfo = player.PlayerData.charinfo
local reportId = #REPORTS + 1

REPORTS[reportId] = {
Expand Down Expand Up @@ -57,7 +55,7 @@ RegisterNetEvent('qbx_admin:server:sendReply', function(report, message)

TriggerClientEvent('chatMessage', report.senderId, "", {255, 0, 0}, string.format('[REPORT #%s] [%s] ^7%s', report.id, name, message))

exports.qbx_core:Notify(target.PlayerData.source, locale('success.sent_report_reply'), 'success')
exports.qbx_core:Notify(source, locale('success.sent_report_reply'), 'success')

if REPORTS[report.id].claimed == 'Nobody' then
REPORTS[report.id].claimed = name
Expand Down

0 comments on commit 19fb017

Please sign in to comment.