Jump to content

Work with objects


Recommended Posts

Posted

Hello everyone. Help, if it’s not difficult for you, please)
Is it possible to increase the range of drawing objects added to the server? If so, how?
I saw that you can add an object using code, but in which file and how to do it right?
I express my gratitude in advance.

---

Здравствуйте все. Помогите, если вам не сложно, пожалуйста)
Можно ли увеличить диапазон объектов рисования, добавляемых на сервер? Если так, то как?
Я видел, что вы можете добавить объект, используя код, но в каком файле и как это сделать правильно?
Выражаю благодарность заранее.

  • Moderators
Posted

For setting high LOD model's distance: https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance

For setting an object as the low LOD object (which can be rendered maximum 1500 units away): https://wiki.multitheftauto.com/wiki/SetLowLODElement

Given I'm not into coding, this is probably the most I can help.

  • Like 1
  • Thanks 1

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

  • Moderators
Posted (edited)
On 03/06/2020 at 11:30, SanMartin said:

I saw that you can add an object using code, but in which file and how to do it right?
I express my gratitude in advance.

The functions that @Tut provided are the way to go to achieve that.

You can find here an example resource on how to use the second function:

 

Edited by IIYAMA
  • Like 1
  • Thanks 1

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

 

  Useful functions  3x 

  Tutorials  4x 

 

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