Jump to content

onStream load mods


Axel

Recommended Posts

Why is it so bad if you load mods when player joins? If you don't like them to wait for load, do your own mod loading system with triggerLatentClientEvent, file functions and loadstring. They could move freely with some ping here and there but if you use triggerLatentClientEvent correctly, it's very good.

Link to comment
It's not about downloading, but using engine functions to load them. You need kinda wait some time for replace procedure to finish.

You could simply freeze them and disable their collision if need be. Alternatively send them to another dimension as well.

Link to comment
  • Moderators

Loading lots of mods/textures should be done with onClientRender(+getTickCount()). The engine will render a next frame when the process has been finished. The lagg will spread over a longer period of time and the amount of crashing should be reduced.

onClientElementStreamIn should working too, but I do not recommend you to unload them when they got streamed out. Loading and unloading cost a lot of memory. You could try a combi with onClientElementStreamIn and onClientRender.

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