From 7d9429cec817b1bb0de9ff7ad0c98f9d02e1bd98 Mon Sep 17 00:00:00 2001 From: Matthew <22198949+mafewtm@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:05:11 -0500 Subject: [PATCH] fix(server/commands): use new core exports --- client/main.lua | 12 ------------ server/commands.lua | 5 ++--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/client/main.lua b/client/main.lua index 2c22f88..1f25b7b 100644 --- a/client/main.lua +++ b/client/main.lua @@ -257,18 +257,6 @@ local function registerAliveRadial() lib.registerRadial({ id = 'policeMenu', items = { - { - icon = 'lock', - label = locale('radial.cuff'), - onSelect = function() - end, - }, - { - icon = 'lock-open', - label = locale('radial.uncuff'), - onSelect = function() - end, - }, { icon = 'magnifying-glass', label = locale('radial.search'), diff --git a/server/commands.lua b/server/commands.lua index c3541aa..472764f 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -12,7 +12,7 @@ lib.addCommand('callsign', { if not player or player.PlayerData.job.type ~= 'leo' and player.PlayerData.job.type ~= 'ems' then return end - player.Functions.SetMetaData('callsign', args.callsign) + exports.qbx_core:SetMetadata(source, 'callsign', args.callsign) end) lib.addCommand('fine', { @@ -41,8 +41,7 @@ lib.addCommand('fine', { return end - target.Functions.RemoveMoney('bank', args.amount, locale('commands.fine.issuer')) - + exports.qbx_core:RemoveMoney(source, 'bank', args.amount, locale('commands.fine.issuer')) exports.qbx_core:Notify(source, locale('commands.fine.issued'), 'success') exports.qbx_core:Notify(target, locale('commands.fine.fined', args.amount), 'error') end) \ No newline at end of file