tweak(es_extended): better error message for context issues

This commit is contained in:
Mycroft
2022-09-06 03:13:15 +01:00
parent 8866fbb2c5
commit 1ded3628bf
+3 -4
View File
@@ -158,7 +158,6 @@ ESX.HashString = function(str)
end
if GetResourceState("esx_context") ~= "missing" then
function ESX.OpenContext(...)
exports["esx_context"]:Open(...)
end
@@ -172,15 +171,15 @@ if GetResourceState("esx_context") ~= "missing" then
end
else
function ESX.OpenContext()
print("[ERROR] ESX Context Not Found")
print("[ERROR] Tried to open context menu, but esx_context is missing!")
end
function ESX.PreviewContext()
print("[ERROR] ESX Context Not Found")
print("[ERROR] Tried to preview context menu, but esx_context is missing!")
end
function ESX.CloseContext()
print("[ERROR] ESX Context Not Found")
print("[ERROR] Tried to close context menu, but esx_context is missing!")
end
end