improvement: configurable character deletation (#35)

Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
This commit is contained in:
Demetrio
2021-08-09 16:54:32 +02:00
committed by GitHub
parent 0ec17f081e
commit 248b6e0b92
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ if ESX.GetConfig().Multichar then
local elements = {}
if not data.current.new then
elements[1] = {label = _('char_play'), action = 'play', value = data.current.value}
elements[2] = {label = _('char_delete'), action = 'delete', value = data.current.value}
if Config.CanDelete then elements[2] = {label = _('char_delete'), action = 'delete', value = data.current.value} end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'choosechar', {
title = _('select_char'),
align = 'top-left',
+2
View File
@@ -5,6 +5,8 @@ Config.Slots = 4
Config.Spawn = vector4(-113.7, 565.3, 195.2, 0) -- Sets the location for character selection
-- To set the spawn location for new characters, modify the default value in the `users` SQL table
Config.CanDelete = false -- Choose whether or not a user can self-delete its own characters
--------------------
-- Do not use unless you are prepared to adjust your resources to correctly reset data
-- Information: https://github.com/thelindat/esx_multicharacter#relogging