diff --git a/server/commands.lua b/server/commands.lua index b77a9bfd8..259676bfc 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -3,7 +3,6 @@ local logger = require 'modules.logger' GlobalState.PVPEnabled = config.server.pvp --- Teleport lib.addCommand('tp', { help = locale('command.tp.help'), params = { @@ -52,8 +51,6 @@ lib.addCommand('togglepvp', { GlobalState.PVPEnabled = config.server.pvp end) --- Permissions - lib.addCommand('addpermission', { help = locale('command.addpermission.help'), params = { @@ -90,8 +87,6 @@ lib.addCommand('removepermission', { RemovePermission(player.PlayerData.source, permission) end) --- Open & Close Server - lib.addCommand('openserver', { help = locale('command.openserver.help'), restricted = 'group.admin' @@ -127,7 +122,7 @@ lib.addCommand('closeserver', { config.server.closedReason = reason for k in pairs(QBX.Players) do if not IsPlayerAceAllowed(k --[[@as string]], config.server.whitelistPermission) then - DropPlayer(k, reason) + DropPlayer(k --[[@as string]], reason) end end @@ -137,8 +132,6 @@ lib.addCommand('closeserver', { end end) --- Vehicle - lib.addCommand('car', { help = locale('command.car.help'), params = { @@ -193,8 +186,6 @@ lib.addCommand('dv', { end end) --- Money - lib.addCommand('givemoney', { help = locale('command.givemoney.help'), params = { @@ -231,7 +222,6 @@ lib.addCommand('setmoney', { player.Functions.SetMoney(args[locale('command.setmoney.params.moneytype.name')], args[locale('command.setmoney.params.amount.name')]) end) --- Job lib.addCommand('job', { help = locale('command.job.help') }, function(source) @@ -258,8 +248,6 @@ lib.addCommand('setjob', { assert(success, json.encode(errorResult)) end) ---- ADMIN COMMAND - lib.addCommand('changejob', { help = locale('command.changejob.help'), params = { @@ -315,8 +303,6 @@ lib.addCommand('removejob', { assert(success, json.encode(errorResult)) end) --- Gang - lib.addCommand('gang', { help = locale('command.gang.help') }, function(source) @@ -343,8 +329,6 @@ lib.addCommand('setgang', { assert(success, json.encode(errorResult)) end) --- Out of Character Chat - lib.addCommand('ooc', { help = locale('command.ooc.help') }, function(source, args) @@ -387,8 +371,6 @@ lib.addCommand('ooc', { end end) --- Me command - lib.addCommand('me', { help = locale('command.me.help'), params = { @@ -406,14 +388,10 @@ lib.addCommand('me', { playerState:set('me', nil, true) end) --- ID command - lib.addCommand('id', {help = locale('info.check_id')}, function(source) Notify(source, 'ID: ' .. source) end) --- Character commands - lib.addCommand('logout', { help = locale('info.logout_command_help'), restricted = 'group.admin',