mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Merge pull request #1083 from MoskalykA/esx-multicharacter-omission
refactor(esx_multicharacter): add a few omissions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ESX.RegisterCommand('setslots', 'admin', function(xPlayer, args, showError)
|
||||
ESX.RegisterCommand('setslots', 'admin', function(xPlayer, args)
|
||||
MySQL.insert('INSERT INTO `multicharacter_slots` (`identifier`, `slots`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `slots` = VALUES(`slots`)', {
|
||||
args.identifier,
|
||||
args.slots,
|
||||
@@ -9,7 +9,7 @@ end, true, {help = TranslateCap('command_setslots'), validate = true, arguments
|
||||
{name = 'slots', help = TranslateCap('command_slots'), type = 'number'}
|
||||
}})
|
||||
|
||||
ESX.RegisterCommand('remslots', 'admin', function(xPlayer, args, showError)
|
||||
ESX.RegisterCommand('remslots', 'admin', function(xPlayer, args)
|
||||
local slots = MySQL.scalar.await('SELECT `slots` FROM `multicharacter_slots` WHERE identifier = ?', {
|
||||
args.identifier
|
||||
})
|
||||
@@ -64,4 +64,4 @@ end, true, {help = TranslateCap('command_disablechar'), validate = true, argumen
|
||||
|
||||
RegisterCommand('forcelog', function(source)
|
||||
TriggerEvent('esx:playerLogout', source)
|
||||
end, true)
|
||||
end, true)
|
||||
Reference in New Issue
Block a user