Jump to content

How to know whether the world objects have been loaded


John Smith

Recommended Posts

Posted

Hello there.

When you e.g setCameraMatrix to somewhere like thousands of meters from your original distance, the game takes up to 2-5 seconds to load all the objects in your streamed in radius.

So I was wondering whether it's possible to determine when that loading has been finished, or to somehow make it load faster?

Oh and https://wiki.multitheftauto.com/wiki/IsElementWaitingForGroundToLoad doesn't work for this case, tried it anyway but as I expected it didn't work as it wasn't intended for that.

Thanks for reading.

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

  • Moderators
Posted

That will probably happen when this doesn't get activated so much: https://wiki.multitheftauto.com/wiki/OnClientElementStreamIn

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

It's really irritating when i switch to spectating and objects around the target haven't loaded. Would love to make them load faster as well. 

  • Like 1

G6HYac9.jpg

I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux 
I also love cars

PS I'm friendly

Posted
11 minutes ago, IIYAMA said:

That will probably happen when this doesn't get activated so much: https://wiki.multitheftauto.com/wiki/OnClientElementStreamIn

Hey, thanks but onClientElementStreamIn doesn't work on world objects, I've just tested it. Dunno what else there is to do, should I just make a feature request on bugtracker?

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

  • Moderators
Posted

Maybe you find something here:

https://wiki.multitheftauto.com/wiki/DxGetStatus

The textures are the last thing in the world to load.

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

There's nothing you can do. What you can do is add a small timer to when the player's screen will be visible (you can use fadeCamera) and freeze the player temporarily so they don't fall through the ground.

Discord: its.tails

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