The way you call the function in esx_advancedgarage is not good, soo you have 2 option, create or edit.
1 - Create
esx_marker_npc/config.lua
name = "akina",
pos = vector3(-2667.46, 1301.1, 146.9),
h = 353.0,
color = 6,
scale = 0.8,
model = "cs_bankman",
animation = "world_human_leaning",
resource = "esx_advancedgarage",
onEnter = "YourNewFunctionName",
onEnterText = "Press ~INPUT_CONTEXT~ to access garage",
onExit = 'closeMenu'
esx_advancedgarage/client.lua (add this line)
exports(
'YourNewFunctionName',
function()
OpenMenuGarage(PointType)
end
)
OR
2 - Edit
esx_marker_npc/config.lua
name = "akina",
pos = vector3(-2667.46, 1301.1, 146.9),
h = 353.0,
color = 6,
scale = 0.8,
model = "cs_bankman",
animation = "world_human_leaning",
resource = "esx_advancedgarage",
onEnter = "OpenMenuGarage",
onEnterText = "Press ~INPUT_CONTEXT~ to access garage",
onExit = 'closeMenu'
in esx_advancedgarage/client.lua
REPLACE
function OpenMenuGarage(PointType)
Your_code_you_need_to_copy_and_paste
end
WITH
exports(
'OpenMenuGarage',
function(PointType)
Your_code_you_need_to_copy_and_paste
end
)