Post: How to define when a code is active
03-29-2016, 09:52 PM #1
Saber_JZY
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I have a code that contains huds ( for all players ) I have general knowledge on how to add it to my overflow fix,but how do I define in the overflow fix when the function is being used/active?? So the text is not constantly recreated if the function is not being used??
(adsbygoogle = window.adsbygoogle || []).push({});
03-29-2016, 10:13 PM #2
BullyWiiPlaza
Climbing up the ladder
You check if the optional HUD element exists and only then you recreate it:
    if(isDefined(level.myHUDElement))
{
recreateMyHUDElement();
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo