manve1 Posted August 8, 2013 Posted August 8, 2013 Is it possible to replace the model from CJ's "moto" helmet? Looking for tutorials or information? check out: www.simpleask.co.uk
Rockero Posted August 8, 2013 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 Full Theft Auto Server. mtasa://212.227.133.73:22003
Chaz-CR Posted August 8, 2013 Posted August 8, 2013 You mean the texture and that? ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
DNL291 Posted August 8, 2013 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 ) Please do not PM me with scripting related question nor support, use the forums instead.
manve1 Posted August 9, 2013 Author Posted August 9, 2013 No, read more carefully at what i said it was model not texture as i know how to replace textures Looking for tutorials or information? check out: www.simpleask.co.uk
DNL291 Posted August 9, 2013 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. Please do not PM me with scripting related question nor support, use the forums instead.
manve1 Posted August 9, 2013 Author Posted August 9, 2013 Yes Looking for tutorials or information? check out: www.simpleask.co.uk
denny199 Posted August 9, 2013 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. Sometimes I dream about cheese
manve1 Posted August 9, 2013 Author 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? Looking for tutorials or information? check out: www.simpleask.co.uk
tosfera Posted August 9, 2013 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. If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]
manve1 Posted August 9, 2013 Author 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? Looking for tutorials or information? check out: www.simpleask.co.uk
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