Auto close storage on room exit.

Auto close storage on room exit.
This commit is contained in:
Jaysyn904
2023-03-06 17:50:08 -05:00
parent c4140a23bb
commit 72eb2cfdc9
7 changed files with 252 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
#include "inc_perchest"
void main()
{
object oPlayer = GetExitingObject();
int nToken = NuiFindWindow(oPlayer, PC_NUI_WINDOW_ID);
//:: Murder the poor window
NuiDestroy(oPlayer, nToken);
nToken = NuiFindWindow(oPlayer, PC_NUI_GOLD_WINDOW_ID);
if (nToken)
NuiDestroy(oPlayer, nToken);
}