fix(legacy/multichar): Add compatibility for esx_multicharacter

Maintains compatibility with previous versions
This commit is contained in:
Linden
2021-05-17 21:15:15 +10:00
parent 1619a26607
commit c51122b195
2 changed files with 89 additions and 80 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ if not Config.UseDeferrals then
if callback then
ESX.ShowNotification(_U('thank_you_for_registering'))
EnableGui(false)
TriggerEvent('esx_skin:playerRegistered')
if not ESX.GetConfig().Multichar then TriggerEvent('esx_skin:playerRegistered') end
else
ESX.ShowNotification(_U('registration_error'))
end