Jump to content

Spawn GUI


Recommended Posts

  
addEventHandler ("onPlayerLogin", getRootElement(), 
    function () 
        local acc = getPlayerAccount (source) 
        if acc and not isGuestAccount (acc) then 
            local everPlayed = getAccountData (acc, "everPlayedHere") 
            if (everPlayed == false) then 
                --showWindow 
                setAccountData (acc, "everPlayedHere", true) 
                outputChatBox ("Table showed cuz you never logged in here", source) 
            else 
                outputChatBox ("Table not showed cuz u've logged in here once", source) 
            end 
        end 
    end 
) 
  

The same stuff can be client-side (since you have GUIs, but it works like this)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...