Imposter Posted July 28, 2012 Posted July 28, 2012 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
Vision Posted July 28, 2012 Posted July 28, 2012 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)
Castillo Posted July 28, 2012 Posted July 28, 2012 Your problem is that you attach the event handler to a non existing function. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Dev Posted July 29, 2012 Posted July 29, 2012 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now