Jump to content

Xabi

Moderators
  • Posts

    1444
  • Joined

  • Last visited

  • Days Won

    83

Posts posted by Xabi

  1. 6 minutes ago, Remmi_Jefferson said:
    
    if(notifications)
    {
        notifications = null;
    }
    else{
        var notifications = mp.browsers.new("package://notifications/index.html");
        setTimeout(() => {
            notifications.destroy();
        }, 5000)
    }

    So?

    The null should be assigned AFTER the destroy() line, don't just replace it.

    That's what @MrPancakers told you to do and how it's supposed to work.

  2. 2 minutes ago, Simon9608 said:

    In case anyone comes across this issue too and they've verified that they have done what the above comments suggest then check if your client class has 'using RAGE.Game' , if it does remove it and derive class from Events.Script not just Script. For some reason that won't load your script.

    Hope that helps!

    It's not the same class, they're RAGE.Events.Script and RAGE.Game.Script, you need the first one as you said.

  3. First of all you should've asked me by private message. As for the error, it says you don't have correctly linked the bootstrapper.dll as a dependency for the solution, that's why it won't find RAGE's API.

×
×
  • Create New...