Jump to content

SmokingJoePot

Members
  • Content Count

    34
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SmokingJoePot

  • Rank
    Rat
  1. All the codes Ive been using, you gave me. So you want me to copy and paste this new code you just posted? I have the txds and dffs in the skins folder. I put everything in the skins folder I created. In my meta.xml, I don't have skins/skin1. I have it like this: and so on...ect. are you saying it should look like this: and so on...ect.
  2. Well then can you show me how the code is suppose to look because I have this so far, I want to change alot of skins but its not working. In my C:\Program Files\MTA San Andreas 1.1\server\mods\deathmatch\resources, I created a skins folder and I have all the .txds and .dffs, the script.lua and the meta.xml. What else do I do to get it to work. script.lua: local skins = {{fileName="skin1", skinID=9}, {fileName="skin2", skinID=10}, {fileName="skin3", skinID=11}, {fileName="skin4", skinID=12}, {fileName="skin5", skinID=13}, {fileName="skin6", skinID=14}, {fileName="skin7", skinID=15}, {fileNa
  3. I didn't double post the same thing I changed something in the second post, I don't know how to in these forums. Im just trying to change a skin and ive been messing with this for awhile, Im just trying to get it to work so I can see how it works and then add more skins. I can go without the criticizing and I would appreciate some help and support. Whats my meta.xml suppose to look like? All I have is this:
  4. Or should it be like this?: function replaceModel() local skin = engineLoadTXD ( "fav/SynysterGatess.txd" ) engineImportTXD ( fav, SynysterGatess ) skin = engineLoadTXD ( "fav/bee.txd" ) engineImportTXD ( fav, bee ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(), replaceModel)
  5. My bad, I forgot, is this right?: function replaceModel() local skin = engineLoadTXD ( "fav/SynysterGatess.txd" ) engineImportTXD ( skin, SynysterGatess ) skin = engineLoadTXD ( "fav/bee.txd" ) engineImportTXD ( skin, bee ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(), replaceModel)
  6. ok, I thought maybe renaming them was the problem so I let the txds and dffs originally named. Im trying out 2 skins, ones called SynysterGatess and the other is called bee. Im trying it in a folder called fav, and this is what I have so far in the meta.xml and script.lua: This is what I have in my meta.xml: This is what I have in my script.lua: function replaceModel() local skin = engineLoadTXD ( "skins/SynysterGatess.txd" ) engineImportTXD ( skin, SynysterGatess ) skin = engineLoadTXD ( "skins/bee.txd" ) engineImportTXD ( skin, bee )
  7. oh, yes their valid, they work on my Cleo mod. I changed their names but made sure to keep each pair same name like instead of bee.txd, bee.dff. I named it skin1.txd and skin1.dff. Do you think that could be the problem?
  8. What do you mean by valid? They're skins that I got from the Cleo skin selector mod. I have all the skin packs so I chose some character's txds and dffs from one of the skin.img files and named them skin1-skin41.
  9. What do you mean? I tried to change the skin but it still won't change it.
  10. When I logged in and typed /debugscript 3 in the chat. It said debugscript change to 3. and then I went to the admin panel and clicked the resources tab and then the skins resource status was at "loaded" so, I highlighted the skins resource and hit start and it said started but at the bottom of the screen it said. WARNING: Loading script failed: skins\script.lua:5: Bad 'txd' pointer @ 'engineimportTXD'(1) WARNING: Loading script failed: skins\script.lua:6: Bad 'dff' pointer @ 'engineReplaceModel'(1)
  11. This is exactly what I got in the script.lua: local skins = {{fileName="skin1", skinID=9}, {fileName="skin2", skinID=10}}, {fileName="skin3", skinID=11}}, {fileName="skin4", skinID=12}}, {fileName="skin5", skinID=13}}, {fileName="skin6", skinID=14}}, {fileName="skin7", skinID=15}}, {fileName="skin8", skinID=16}}, {fileName="skin9", skinID=17}}, {fileName="skin10", skinID=18}}, {fileName="skin11", skinID=19}}, {fileName="skin12", skinID=20}}, {fileName="skin13", skinID=21}}, {fileName="skin14", skinID=22}}, {fileName="skin15", skinID=23}}, {fileName="skin16", skinID=24}}, {fileName="skin17", s
  12. When I logged in and typed /debugscript 3 in the chat. It said debugscript change to 3. and then I went to the admin panel and clicked the resources tab and then the skins resource status was at "loaded" so, I highlighted the skins resource and hit restart and it said running but at the bottom of the screen it said. WARNING: Loading script failed: skins\script.lua:1: unexpected symbol near '}'
  13. At the bottom it said WARNING: Loading script failed: skins/script.lua:1: unexpected symbol near '}'
×
×
  • Create New...