Update main.lua

This commit is contained in:
Arctos2win
2023-08-23 21:14:04 +02:00
committed by GitHub
parent ce96e4ab20
commit 4e197d3c1d
+5 -5
View File
@@ -716,13 +716,13 @@ local DoNotUse = {
for key in pairs(DoNotUse) do
if GetResourceState(key) == 'started' or GetResourceState(key) == 'starting' then
StopResource(key)
print("[^1ERROR^7] WE STOPPED A RESOURCE THAT WILL BREAK ^1ESX^7, PLEASE REMOVE ^5" .. key .. "^7")
print(("[^1ERROR^7] WE STOPPED A RESOURCE THAT WILL BREAK ^1ESX^7, PLEASE REMOVE ^5%s^7"):format(key))
end
end
AddEventHandler('onResourceStart', function(resourceName)
if DoNotUse[string.lower(resourceName)] then
AddEventHandler('onResourceStart', function(key)
if DoNotUse[string.lower(key)] then
StopResource(key)
print("[^1ERROR^7] WE STOPPED A RESOURCE THAT WILL BREAK ^1ESX^7, PLEASE REMOVE ^5" .. resourceName .. "^7")
print(("[^1ERROR^7] WE STOPPED A RESOURCE THAT WILL BREAK ^1ESX^7, PLEASE REMOVE ^5%s^7"):format(key))
end
end
end