Fixed AOP Export Issues

This commit is contained in:
HakkoDevelopment
2022-08-11 20:16:37 -06:00
committed by GitHub
parent e3904a3db2
commit f84ed33fae

View File

@@ -73,9 +73,11 @@ function SetDisplay(bool, typeName, bg, characters)
}) })
Wait(500) Wait(500)
if config.characterSelectionAopDisplay then if config.characterSelectionAopDisplay then
local AreaOfPlay = exports[config.aopResourceName]:getAOP()
--print(AreaOfPlay)
SendNUIMessage({ SendNUIMessage({
type = "aop", type = "aop",
aop = exports[config.aop]:getAOP() aop = AreaOfPlay
}) })
end end
end end
@@ -93,9 +95,10 @@ function start(switch)
SetEntityVisible(ped, false, 0) SetEntityVisible(ped, false, 0)
end end
if config.characterSelectionAopDisplay then if config.characterSelectionAopDisplay then
local AreaOfPlay = exports[config.aopResourceName]:getAOP()
SendNUIMessage({ SendNUIMessage({
type = "aop", type = "aop",
aop = config.aop() aop = AreaOfPlay
}) })
end end
end end