From f84ed33faea1c304afc8bb7dc1bacb4769b3c923 Mon Sep 17 00:00:00 2001 From: HakkoDevelopment <67168651+Hakkodevelopment@users.noreply.github.com> Date: Thu, 11 Aug 2022 20:16:37 -0600 Subject: [PATCH] Fixed AOP Export Issues --- ND_CharacterSelection/source/client.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ND_CharacterSelection/source/client.lua b/ND_CharacterSelection/source/client.lua index 04a7cf0..01a4c16 100644 --- a/ND_CharacterSelection/source/client.lua +++ b/ND_CharacterSelection/source/client.lua @@ -73,9 +73,11 @@ function SetDisplay(bool, typeName, bg, characters) }) Wait(500) if config.characterSelectionAopDisplay then + local AreaOfPlay = exports[config.aopResourceName]:getAOP() + --print(AreaOfPlay) SendNUIMessage({ type = "aop", - aop = exports[config.aop]:getAOP() + aop = AreaOfPlay }) end end @@ -93,9 +95,10 @@ function start(switch) SetEntityVisible(ped, false, 0) end if config.characterSelectionAopDisplay then + local AreaOfPlay = exports[config.aopResourceName]:getAOP() SendNUIMessage({ type = "aop", - aop = config.aop() + aop = AreaOfPlay }) end end