fix(esx_multicharacter): slots should work now

This commit is contained in:
Mycroft
2022-10-21 10:31:58 +01:00
committed by GitHub
parent 5a2ea2ba6b
commit a5b53476d6
+1 -1
View File
@@ -182,7 +182,7 @@ if ESX.GetConfig().Multichar then
elements[#elements+1] = {title = label,icon = "fa-regular fa-user", value = v.id}
end
end
if #elements < slots then
if #elements - 1 < slots then
elements[#elements+1] = {title = _('create_char'), icon = "fa-solid fa-plus", value = (#elements+1), new = true}
end