Jump to content
  • 0

A problem with engineLoadDFF and engineReplaceModel


Flower ☠ Power

Question

Posted

I'm one of this guys who edit San Andreas buildings and i find a problem with it.

The problem is that when you replace a real object of the map (not one created with map editor) you don't load the .DFF (model) in the moment and you need to reconnect to fix this.

This is the code i use to replace .dffs

dff = engineLoadDFF ( "<Insert Object Directory Here>", <Insert Object ID Here> ) 
engineReplaceModel ( dff, <Insert Object ID Here> ) 

This if you don't understand what i wrote above this is an example (I use this in the video):

dff = engineLoadDFF ( "dilgas/sw_gas01.dff", 12853 ) 
engineReplaceModel ( dff, 12853 ) 

This is the Video if you still non understanding what i mean (the gas station is an SanAndreas object and i didn't touch it with the map editor)

8 answers to this question

Recommended Posts

  • 0
Posted
Please make a resource which reproduces the error.

wut?

Anyway i think the problem is not of the reource is of this two commands not working properly with San Andreas objects (not mapped ones with the mapped ones it works properly)this is the problem try to understand it.

If you don't belive that this happens test it in your server.

  • 0
Posted
Please make a resource which reproduces the error.

wut?

Anyway i think the problem is not of the reource is of this two commands not working properly with San Andreas objects (not mapped ones with the mapped ones it works properly)this is the problem try to understand it.

If you don't belive that this happens test it in your server.

Provide us with the resource to reproduce the crash...

  • 0
  • MTA Team
Posted

We need a resource which contains the model you used and shows the problem

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...