mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
tweak(es_extended): better error message for context issues
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user