aka Blue Posted January 23, 2016 Share Posted January 23, 2016 (edited) Bueno, estoy teniendo nuevamente un problema con los mapeados. Lo que pasa es que desaparecen y aparecen todo el rato y es muy molesto. He intentado usando lo siguiente: local objetos = { [16436] = true, [7497] = true, [7832] = true, [3474] = true, [1421] = true, [942] = true, [1438] = true, [1440] = true, [1441] = true, [7618] = true, [7657] = true, [1414] = true, [1448] = true, [1431] = true, [939] = true, [7622] = true, [7621] = true, [1268] = true, [7914] = true, [5392] = true, [1257] = true, [5709] = true, [5727] = true, [5731] = true, [5737] = true, [7492] = true, [5787] = true, [5813] = true, [6157] = true } addEventHandler ( "onClientPlayerJoin", root, function ( startedRes ) setFarClipDistance( 3000 ) for i, v in ipairs(getElementsByType("object")) do local model = objetos[getElementModel(v)] engineSetModelLODDistance(model, 500) -- Set maximum draw distance end end ) Pero nada, sigue igual. ¿Alguna solución? Gracias. Edited January 23, 2016 by Guest Link to comment
Enargy, Posted January 23, 2016 Share Posted January 23, 2016 local model = objetos[getElementModel(v)] engineSetModelLODDistance(model, 500) 'model' te esta dando un booleano y no una id. Prueba así addEventHandler ( "onClientPlayerJoin", root, function ( startedRes ) setFarClipDistance( 3000 ) for i, v in ipairs(getElementsByType("object")) do local model = objetos[getElementModel(v)] if ( model ) then engineSetModelLODDistance(v, 500) end end end ) Link to comment
Sasu Posted January 23, 2016 Share Posted January 23, 2016 Prueba: setOcclusionsEnabled(false) Link to comment
aka Blue Posted January 23, 2016 Author Share Posted January 23, 2016 Al fin, gracias a ambos. Ya me estaba volviendo loco con ésta cosa jaja Link to comment
Recommended Posts