Desaster Posted November 10, 2013 Share Posted November 10, 2013 hi , so I was entring a server and I saw this so I wanted to ask you guys how I can download a specific resource that runs that text for example First or to run a resource before to download I think you understand what I mean ^^ thnx for your interest Link to comment
TAPL Posted November 10, 2013 Share Posted November 10, 2013 Server Side: DownloadDisplay = textCreateDisplay() Text = textCreateTextItem("Your text here ...", 0.5, 0.5) textDisplayAddText(DownloadDisplay, Text) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) end end) Client Side: Timer = setTimer(function() if not isTransferBoxActive() then triggerServerEvent("onClientDownloadFinish", localPlayer) if isTimer(Timer) then killTimer(Timer) end end end, 1000, 0) Link to comment
tosfera Posted November 10, 2013 Share Posted November 10, 2013 Server Side: DownloadDisplay = textCreateDisplay() Text = textCreateTextItem("Your text here ...", 0.5, 0.5) textDisplayAddText(DownloadDisplay, Text) addEventHandler("onPlayerJoin", root, function() textDisplayAddObserver(DownloadDisplay, source) end) addEvent("onClientDownloadFinish", true) addEventHandler("onClientDownloadFinish", root, function() if textDisplayIsObserver(DownloadDisplay, source) then textDisplayRemoveObserver(DownloadDisplay, source) end end) Client Side: Timer = setTimer(function() if not isTransferBoxActive() then triggerServerEvent("onClientDownloadFinish", localPlayer) if isTimer(Timer) then killTimer(Timer) end end end, 1000, 0) offtopic; Waaaow, 3 total new sections of the wiki for me! .___. Thanks TAPL Link to comment
Desaster Posted November 10, 2013 Author Share Posted November 10, 2013 hmmm could I add camera matrixes to it ?? Link to comment
Blaawee Posted November 10, 2013 Share Posted November 10, 2013 Use : fadeCamera setCameraMatrix Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now