mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
feat: es_extended ESX.RefreshContext
added ESX.RefreshContext so we wont need to use the export
This commit is contained in:
@@ -169,6 +169,10 @@ if GetResourceState("esx_context") ~= "missing" then
|
||||
function ESX.CloseContext(...)
|
||||
exports["esx_context"]:Close(...)
|
||||
end
|
||||
|
||||
function ESX.RefreshContext(...)
|
||||
exports["esx_context"]:Refresh(...)
|
||||
end
|
||||
else
|
||||
function ESX.OpenContext()
|
||||
print("[ERROR] Tried to open context menu, but esx_context is missing!")
|
||||
@@ -181,6 +185,10 @@ else
|
||||
function ESX.CloseContext()
|
||||
print("[ERROR] Tried to close context menu, but esx_context is missing!")
|
||||
end
|
||||
|
||||
function ESX.RefreshContext()
|
||||
print("[ERROR] Tried to close context menu, but esx_context is missing!")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user