Jump to content

3D model isn't replacing


Recommended Posts

Hi guys,

I don't know if I'm in the good topic but I have a problem with my 3d model.

I tried to replace the "vinewood" sign, I gained the dff model from the img file, and then started to edit it.

My result was pretty nice, exported it without any problems.

In-game I started the script, without luck, no crash at all, but the model didn't loaded my dff file:

https://www.dropbox.com/s/rgzcpv3v5brllip/bami.dff

My script:

  
function laad() 
 local dff1 = engineLoadDFF("bami.dff", 13831 ) 
 engineReplaceModel(dff1, 13831) 
outputChatBox ( "start") 
end 
addEventHandler("onClientResourceStart", resourceRoot, laad) 
addCommandHandler ( "laad", laad ) 
  

What am I doing wrong?

Regards,

Danny

Link to comment
getResourceRootElement(getThisResource()) 

  
function replaceModel () 
local dff1 = engineLoadDFF("bami.dff", 13831 ) 
engineReplaceModel(dff1, 13831) 
outputChatBox ( "start") -- ? 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel ) 
addCommandHandler ( "laad", replaceModel ) 
  

Link to comment
getResourceRootElement(getThisResource()) 

  
function replaceModel () 
local dff1 = engineLoadDFF("bami.dff", 13831 ) 
engineReplaceModel(dff1, 13831) 
outputChatBox ( "start") -- ? 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel ) 
addCommandHandler ( "laad", replaceModel ) 
  

As far as i know resourceRoot =

getResourceRootElement(getThisResource()) 

Link to comment
Still need some help with it.

It never happend with me , if you are saying it's not from script then maybe it's something wrong with the dff , and MTA engine is forced to return to the original model.

Try to replace it with another dff and see if it work's

Link to comment

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