neves768 Posted January 11, 2014 Posted January 11, 2014 i have this: function xxz() local x,y,z = 5510.216796875,1459.1868896484,9.7500190734863 agua = createObject(3900, x,y,z,0,0,0,false) engineSetModelLODDistance(3900, 1000) -- I know the MAX! engineSetAsynchronousLoading(true,true) setFarClipDistance(5000) -- I Know the MAX! setFogDistance(5000) -- I Know the MAX! end addEventHandler ( "onClientResourceStart", getRootElement(), xxz) I Can see all San Andreas, but modified objects (.map or createObject) not show by high distance. Any solution? My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
neves768 Posted January 13, 2014 Author Posted January 13, 2014 up My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
DiSaMe Posted January 14, 2014 Posted January 14, 2014 Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function: setLowLODElement When objects become invisible because of long distance, low LOD objects become visible. -
Tails Posted January 14, 2014 Posted January 14, 2014 Read here about the draw distance limit for objects: https://forum.multitheftauto.com/viewtopic.php?f=91&t=64432 Discord: its.tails
neves768 Posted January 15, 2014 Author Posted January 15, 2014 Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function: setLowLODElement When objects become invisible because of long distance, low LOD objects become visible. Not working All san andreas show, but object not(ps: it's objecet visibility without aim[sniper]) My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
neves768 Posted January 15, 2014 Author Posted January 15, 2014 Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function: setLowLODElement When objects become invisible because of long distance, low LOD objects become visible. Not working All san andreas show, but object not(ps: it's objecet visibility without aim[sniper]) function xxz() local x,y,z = 5510.216796875,1459.1868896484,9.7500190734863 Naomexa = createObject(3900, x,y,z,0,0,0) agua = createObject(3900, x,y,z,0,0,0,true) setLowLODElement(Naomexa, agua) engineSetModelLODDistance(3900, 1000) setFarClipDistance(5000) setFogDistance(5000) end addEventHandler ( "onClientResourceStart", getRootElement(), xxz) My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
Deepu Posted January 15, 2014 Posted January 15, 2014 Have you tried this MTA LUA FUNCTION? setLowLODElement(theElement, lowLODElement) Try it and give a reply WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Moderators IIYAMA Posted January 15, 2014 Moderators Posted January 15, 2014 There are limits for all custom objects, even for lowLOD elements. So: Impossible for now. 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
neves768 Posted January 30, 2014 Author Posted January 30, 2014 There are limits for all custom objects, even for lowLOD elements. So: Impossible for now. It's possible. Not with MTA Functions, but with LUA functions. My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
Moderators IIYAMA Posted January 30, 2014 Moderators Posted January 30, 2014 There are limits for all custom objects, even for lowLOD elements. So: Impossible for now. It's possible. Not with MTA Functions, but with LUA functions. Lua functions can't do anything with object's except saving their userdata's, nothing more nothing less. While MTA functions, can change things ingame..... Pls don't talk crap. 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