Gaimo Posted May 21, 2024 Posted May 21, 2024 I was thinking about creating a supermarket simulator in MTA. I want to know the size of the objects to know how many can fit on each shelf and make the calculation to position the elements, what is the function to obtain the size of an object?
Moderators IIYAMA Posted May 21, 2024 Moderators Posted May 21, 2024 3 hours ago, Gaimo said: what is the function to obtain the size of an object? This is the function: https://wiki.multitheftauto.com/wiki/GetElementBoundingBox (box size only) The function was missing on the Clientside element section, but now it is added. 1 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
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