Skip to content

Commit

Permalink
fix(server/commands): use new core exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm authored Jan 7, 2025
1 parent d4a5585 commit 7d9429c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
12 changes: 0 additions & 12 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
5 changes: 2 additions & 3 deletions server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -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)

0 comments on commit 7d9429c

Please sign in to comment.