#include "inc_examine" #include "nw_inc_nui" #include "prc_nui_consts" void main() { object oPlayer = GetLastGuiEventPlayer(); int nType = GetLastGuiEventType(); object oTarget = GetLastGuiEventObject(); int nValue = GetLastGuiEventInteger(); if (nType == GUIEVENT_EFFECTICON_CLICK) { int windowId = NuiFindWindow(oPlayer, DURATION_NUI_WINDOW_ID); if (!windowId) { SetScriptParam(NUI_DURATION_MANUALLY_OPENED_PARAM, "1"); ExecuteScript("prc_nui_dur_view", oPlayer); } } if (nType == GUIEVENT_DISABLED_PANEL_ATTEMPT_OPEN) { if (nValue == GUI_PANEL_EXAMINE_CREATURE || nValue == GUI_PANEL_EXAMINE_ITEM || nValue == GUI_PANEL_EXAMINE_PLACEABLE || nValue == GUI_PANEL_EXAMINE_DOOR) { Examine_HandleGUIEvents(oPlayer, oTarget, nValue); } } }