feat(es_extended): error handling for resources that break esx

This commit is contained in:
Mycroft
2022-09-18 07:03:58 +01:00
parent 319e7e4f5e
commit 79b707356b
+18
View File
@@ -741,3 +741,21 @@ AddEventHandler("esx:freezePlayer", function(input)
SetPlayerInvincible(player, false)
end
end)
local DoNotUse = {
'essentialmode',
'es_admin2',
'basic-gamemode',
'mapmanager',
'fivem-map-skater',
'fivem-map-hipster',
'mysql-async',
'qb-core',
'default_spawnpoint',
}
for i=1, #DoNotUse do
if GetResourceState(DoNotUse[i]) == 'started' or GetResourceState(DoNotUse[i]) == 'starting' then
print("[^1ERROR^7] YOU ARE USING A RESOURCE THAT WILL BREAK ^1ESX^7, PLEASE REMOVE ^5"..DoNotUse[i].."^7")
end
end