An example of what I mean might help you out:
Server side:
function whateverEventYouAreUsing() -- The event that initializes login panel server side
triggerClientEvent(source, "theClientSideEventThatInitializesLoginPanel", resourceRoot, getPlayerAccountState(source))
end
Client side:
function theClientSideEventThatInitializesLoginPanel(accountState)
if (accountState == "haveAccount") then
-- Do whatever you want when the player has an account
else
-- Do whatever you want when the player doesn't have an account
end
end
addEvent("theClientSideEventThatInitializesLoginPanel", true)
addEventHandler("theClientSideEventThatInitializesLoginPanel", resourceRoot, theClientSideEventThatInitializesLoginPanel)