Jump to content

[HELP] Ped Skinning


Imposter

Recommended Posts

Posted

What is wrong here, why wont it replace the ped model??

function makeAltair() 
    outputChatBox ( "Altair Mod - NooP" ) 
      
    txd = engineLoadTXD ( "altair.txd" ) 
    engineImportTXD ( txd, 258 ) 
    dff = engineLoadDFF ( "altair.dff", 258 ) 
    engineReplaceModel ( dff, 258 ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, ReplaceVehicle ) 
  
function setAltair() 
    setElementModel ( getLocalPlayer(), 258 ) 
end 
addCommandHandler("altair", setAltair) 

<meta> 
<script src="client.lua" type="client" /> 
<file src="altair.txd" /> 
<file src="altair.dff" /> 
</meta> 

Eat My Dust - DM/Deathmatch

350x20_00C3FF_FFFFFF_000000_000000.png

Posted

try

function makeAltair() 
    outputChatBox ( "Altair Mod - NooP" ) 
      
    txd = engineLoadTXD ( "altair.txd" ) 
    engineImportTXD ( txd, 258 ) 
    dff = engineLoadDFF ( "altair.dff", 258 ) 
    engineReplaceModel ( dff, 258 ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, makeAltair ) 
  
function setAltair() 
    setElementModel ( getLocalPlayer(), 258 ) 
end 
addCommandHandler("altair", setAltair) 

Posted

Your problem is that you attach the event handler to a non existing function.

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

Lonely's code probably fixed it.

"First they ignore you, then they laugh at you, then they fight you, then you win."

- Mahatma Gandhi (1869-1948)

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