Jump to content

[HELP] Login


tony402

Recommended Posts

function fadeUntilDownload() 
if isTransferBoxActive() == true then 
fadeCamera(true) 
     end 
end 
addEventHandler("onClientRender",getRootElement(),fadeUntilDownload) 

49ddfd103ed9a8bb9f074b8930840cf6.png

That wouldn't work, because the resource would have to be running on the client side for the event handler to trigger, and the resource has to be downloaded before it will start... You should use this:

addEventHandler ( "onPlayerJoin", root, function ( ) fadeCamera ( source, true ) end ) 

Link to comment

what would be the client and server?

Client.lua

addEventHandler ( "onPlayerJoin", root, function ( ) fadeCamera ( source, true ) end ) 

And

Server.lua

function fadeUntilDownload() 
if isTransferBoxActive() == true then 
fadeCamera(true) 
     end 
end 
addEventHandler("onClientRender",getRootElement(),fadeUntilDownload) 

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...