John Smith Posted December 17, 2017 Posted December 17, 2017 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
Moderators IIYAMA Posted December 17, 2017 Moderators Posted December 17, 2017 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
koragg Posted December 17, 2017 Posted December 17, 2017 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. 1 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
John Smith Posted December 17, 2017 Author Posted December 17, 2017 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
Moderators IIYAMA Posted December 17, 2017 Moderators Posted December 17, 2017 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Tails Posted December 18, 2017 Posted December 18, 2017 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
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