feat: es_extended ESX.RefreshContext

added ESX.RefreshContext so we wont need to use the export
This commit is contained in:
Benzo
2022-09-11 03:55:57 +02:00
parent dc9a074486
commit 69306621a8
+8
View File
@@ -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