Jump to content

SmokingJoePot

Members
  • Posts

    34
  • Joined

  • Last visited

SmokingJoePot's Achievements

Rat

Rat (9/54)

0

Reputation

  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}, {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", skinID=25}, {fileName="skin18", skinID=26}, {fileName="skin19", skinID=27}, {fileName="skin20", skinID=28}, {fileName="skin21", skinID=29}, {fileName="skin22", skinID=30}, {fileName="skin23", skinID=31}, {fileName="skin24", skinID=32}, {fileName="skin25", skinID=33}, {fileName="skin26", skinID=34}, {fileName="skin27", skinID=35}, {fileName="skin28", skinID=36}, {fileName="skin29", skinID=37}, {fileName="skin30", skinID=38}, {fileName="skin31", skinID=39}, {fileName="skin32", skinID=40}, {fileName="skin33", skinID=41}, {fileName="skin34", skinID=43}, {fileName="skin35", skinID=44}, {fileName="skin36", skinID=45}, {fileName="skin37", skinID=46}, {fileName="skin38", skinID=47}, {fileName="skin39", skinID=48}, {fileName="skin40", skinID=49}, {fileName="skin41", skinID=50}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( "skins/".. skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( "skins/".. skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) meta.xml:
  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 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(), replaceModel) I read the earlier posts and used the working codes and just added the names of the files in, but Im not sure if I did that correctly.
  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", skinID=25}}, {fileName="skin18", skinID=26}}, {fileName="skin19", skinID=27}}, {fileName="skin20", skinID=28}}, {fileName="skin21", skinID=29}}, {fileName="skin22", skinID=30}}, {fileName="skin23", skinID=31}}, {fileName="skin24", skinID=32}}, {fileName="skin25", skinID=33}}, {fileName="skin26", skinID=34}}, {fileName="skin27", skinID=35}}, {fileName="skin28", skinID=36}}, {fileName="skin29", skinID=37}}, {fileName="skin30", skinID=38}}, {fileName="skin31", skinID=39}}, {fileName="skin32", skinID=40}}, {fileName="skin33", skinID=41}}, {fileName="skin34", skinID=43}}, {fileName="skin35", skinID=44}}, {fileName="skin36", skinID=45}}, {fileName="skin37", skinID=46}}, {fileName="skin38", skinID=47}}, {fileName="skin39", skinID=48}}, {fileName="skin40", skinID=49}}, {fileName="skin41", skinID=50}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( "skins/".. skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( "skins/".. skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) Could it mean I need another } behind skinID=9}, cause theres seems to be only one?
  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...