manve1 Posted August 8, 2013 Share Posted August 8, 2013 Is it possible to replace the model from CJ's "moto" helmet? Link to comment
Rockero Posted August 8, 2013 Share Posted August 8, 2013 (edited) I Found this on the Wiki... Oh yes I got it, was my mistake.. Edited August 9, 2013 by Guest Link to comment
Chaz-CR Posted August 8, 2013 Share Posted August 8, 2013 You mean the texture and that? Link to comment
DNL291 Posted August 8, 2013 Share Posted August 8, 2013 I Found this on the Wiki...*Serverside function addHelmetOnEnter ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 522 ) then -- if its a nrg addPedClothes ( source, "moto", "moto", 16 ) -- add the helmet end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), addHelmetOnEnter ) function removeHelmetOnExit ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 522 ) then -- if its a nrg removePedClothes ( source, 16 ) -- remove the helmet end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), removeHelmetOnExit ) No, he wants to replace it with another texture. @manve1: You can find the ID (or the name) on this page: https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs Example: txd = engineLoadTXD("textureName.txd") engineImportTXD( txd, 30403 ) Link to comment
manve1 Posted August 9, 2013 Author Share Posted August 9, 2013 No, read more carefully at what i said it was model not texture as i know how to replace textures Link to comment
DNL291 Posted August 9, 2013 Share Posted August 9, 2013 I did not understand why you said "replace the model", it really confused me (the model in this case is the helmet (?)). Anyway sorry for the misunderstanding. Link to comment
denny199 Posted August 9, 2013 Share Posted August 9, 2013 Yes, you can! (I hope so ) since this is only a texture replacement example above the page, you should try it out and tell us if it works http://development.mtasa.com/wiki/Cloth ... ponent_IDs 30403-moto is an id. Link to comment
manve1 Posted August 9, 2013 Author Share Posted August 9, 2013 WARNING: script\client:13: Bad usage @ 'engineReplaceModel' [Model ID 30403 replace failed] As far as i know this error suggests that there isn't a model with an ID of 30403? Link to comment
tosfera Posted August 9, 2013 Share Posted August 9, 2013 30403 is the texture ID of the helm, you need the Model ID to get that fixed I guess. Vehicle's do have the same ID's but clothes etc doesn't. I replaced a necklace with a flower band for a hawai party a few weeks ago. Link to comment
manve1 Posted August 9, 2013 Author Share Posted August 9, 2013 I will look into this a lot deeper, thanx for the info, but how did you get the model id, not the texture id? Link to comment
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