mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
improvement: configurable character deletation (#35)
Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user