Jump to content

help


golanu21

Recommended Posts

Posted
function replaceModel()  
  txd = engineLoadTXD("infernus.txd", 411 ) 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

what is not ok here?, the name of txd and dff is infernus, and i want to change infernus model

XajVsWV.png

168_zps269f1907.gif[Dev]BloWnRPG - We BloW the World [1%]168_zps269f1907.gif

Posted

Post the meta.xml content.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
    "HazeMaze" version="0.1" type="gamemode" name="RPG" description="RPG">
     
    
    
       
    "policeJob/jail.map" /> 
    "policeJob/pvehs.map" /> 
     
    
    
    "robberjob/files/cash.mp3"/> 
     
    
  
     
    
    
    "pizzajob/pizzaveh.map"/> 
     
        
        
        "loginpanel/logo.png"/> 
  
         
        
        
        
     
        
        
         
     
    
     
    
    
     
    
     
    

this is the full meta

XajVsWV.png

168_zps269f1907.gif[Dev]BloWnRPG - We BloW the World [1%]168_zps269f1907.gif

Posted

Does the script even load? what's the problem?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function replaceModel()  
  txd = engineLoadTXD("infernus.txd") 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

5: bad dff pointer 
3: bad txt pointer 
  

XajVsWV.png

168_zps269f1907.gif[Dev]BloWnRPG - We BloW the World [1%]168_zps269f1907.gif

Posted

The problem is that you forgot to add the "replaces/" on the path.

function replaceModel() 
  txd = engineLoadTXD("replaces/infernus.txd") 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("replaces/infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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