Update commands.lua

This commit is contained in:
RoadToSix
2022-07-27 00:55:29 +02:00
committed by GitHub
parent 8744f2c101
commit 55a9c337f6
+2 -2
View File
@@ -3,7 +3,7 @@ ESX.RegisterCommand('setslots', 'admin', function(xPlayer, args, showError)
args.identifier
})
if slots == nil then
if not slots then
MySQL.update('INSERT INTO `multicharacter_slots` (`identifier`, `slots`) VALUES (?, ?)', {
args.identifier,
args.slots
@@ -26,7 +26,7 @@ ESX.RegisterCommand('remslots', 'admin', function(xPlayer, args, showError)
args.identifier
})
if slots ~= nil then
if slots then
MySQL.update('DELETE FROM `multicharacter_slots` WHERE `identifier` = ?', {
args.identifier
})