public static bool DoesScriptExist(int hash) { if (!IsTableInitialised) { return(false); } ScriptTableItem *items = *itemsPtr; for (int i = 0; i < *count; i++) { if (items[i].ScriptHash == hash) { return(true); } } return(false); }
public static bool IsScriptLoaded(int hash) { if (!IsTableInitialised) { return(false); } ScriptTableItem *items = *itemsPtr; for (int i = 0; i < *count; i++) { if (items[i].ScriptHash == hash) { return(items[i].ScriptStartAddress != 0); } } return(false); }
public static IntPtr GetScriptAddress(int hash) { if (!IsTableInitialised) { return(IntPtr.Zero); } ScriptTableItem *items = *itemsPtr; for (int i = 0; i < *count; i++) { if (items[i].ScriptHash == hash) { return(new IntPtr(items[i].ScriptStartAddress)); } } return(IntPtr.Zero); }