• [NutScript] How to add models?
    10 replies, posted
Hello everyone, I got a server a few days ago, and since so, I am working hard to bring the serious roleplay to my country. But, I'm finding a problem when adding models to the server, the code is here: [CODE]FACTION_MARINE = 3 local FACTION = {} FACTION.name = "Marine" FACTION.uniqueID = "marine" FACTION.desc = "Teste." FACTION.color = Color(20, 150, 15) FACTION.maleModels = { "models/jesev94/unsc_m01.mdl", "models/jesev94/unsc_m02.mdl", "models/jesev94/unsc_m03.mdl", "models/jesev94/unsc_m04.mdl", "models/jesev94/unsc_m05.mdl", "models/jesev94/unsc_m06.mdl", "models/jesev94/unsc_m07.mdl", "models/jesev94/unsc_m08.mdl", "models/jesev94/unsc_m09.mdl", "models/jesev94/unsc_m11.mdl" } FACTION.femaleModels = FACTION.maleModels FACTION.isDefault = true nut.faction.Register(FACTION_MARINE, FACTION)[/CODE] I've extracted the models from an addon, and putted the folders from it into their right places, but they continue to show up as errors when I want to create a char from the marines faction. Could anyone help me out?
Ask here: [url]http://facepunch.com/showthread.php?t=1284214[/url]
[QUOTE=code_gs;42482919]Ask here: [url]http://facepunch.com/showthread.php?t=1284214[/url][/QUOTE] The problem is that I've already posted there, but no one answered.
The issue isn't related to the code. If the icons appear as errors, but look fine in-game, then you must refresh the icons by going to that specific model in the spawn menu (search for it using search bar), right click, and rebuild since they are cached.
[QUOTE=Chessnut;42483905]The issue isn't related to the code. If the icons appear as errors, but look fine in-game, then you must refresh the icons by going to that specific model in the spawn menu (search for it using search bar), right click, and rebuild since they are cached.[/QUOTE] The models AND the icons appears as errors. I managed to fix only one model, but when I restarted the server to do the same with the other models, they all became errors again.
Make sure you download the models and put them in your gmod?
[QUOTE=Chessnut;42496579]Make sure you download the models and put them in your gmod?[/QUOTE] I've made it of course. But the models on the server continue as errors. Plus, I've noticied that the models were inside another folders, but I've already fixed it and they are errors yet.
Maybe the models are broken or you put them in the wrong folder, but it has nothing to do with the Lua.
[QUOTE=Chessnut;42501054]Maybe the models are broken or you put them in the wrong folder, but it has nothing to do with the Lua.[/QUOTE] I know it doesn't have nothing to do with Lua code, I'm just askin' for help. The models aren't broken since I can use them on singleplayer with no problems.
How are they appearing as errors if you see them in singleplayer?
[QUOTE=Chessnut;42501343]How are they appearing as errors if you see them in singleplayer?[/QUOTE] On the server, they appear as errors, counting the images of the models on the menu and when you use the char with the model. I don't know what I'm doing wrong with them.
Sorry, you need to Log In to post a reply to this thread.