Jump to content

Merge Two scripts


Lodd

Recommended Posts

Hey,it's me again,I'm here to ask you something about mixing scripts,first off,i made a model/texture replacer,and then I made a ped resource,and i'm trying to mix these im one

ped createPed ( int 264, float 1, float 11, float 14 [, float rot = 0.0 ] )

function replaceModel() 
 txd = engineLoadTXD("Skin/bigfoot.txd", 264 )
 engineImportTXD(txd, 264)
 dff = engineLoadDFF("Skin/bigfoot.dff", 264 )
 engineReplaceModel(dff, 264)
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)

addCommandHandler ( "reloadcar", replaceModel )

the replacemodel function doesn't work ,it just create the ped without the custom skin!

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