Skip to content

Commit

Permalink
Fix multi-argument /911p
Browse files Browse the repository at this point in the history
  • Loading branch information
sw4m authored Jan 10, 2025
1 parent 2d717ba commit 6f86573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ lib.addCommand('911p', {
type = 'string',
help = locale('commands.message_sent')
}},
}, function(source, args)
}, function(source, args, raw)
local message
if args.message then message = table.concat(args, ' ') else message = locale('commands.civilian_call') end
if args.message then message = raw:sub(6) else message = locale('commands.civilian_call') end
local ped = GetPlayerPed(source)
local coords = GetEntityCoords(ped)
local players = exports.qbx_core:GetQBPlayers()
Expand Down

0 comments on commit 6f86573

Please sign in to comment.