Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

[1.1] Multiple Models for Factions #423

Closed blt950 closed 9 years ago

blt950 commented 9 years ago

I can seem to only have on model each faction, or one as "male" and "female". More than one creates errors.

Example of list that makes error: FACTION.models = { "models/humans/group17/female_01.mdl", "models/humans/group17/female_02.mdl", "models/humans/group17/female_03.mdl", "models/humans/group17/female_04.mdl", "models/humans/group17/female_06.mdl", "models/humans/group17/female_07.mdl" "models/humans/group17/male_01.mdl", "models/humans/group17/male_02.mdl", "models/humans/group17/male_03.mdl", "models/humans/group17/male_04.mdl", "models/humans/group17/male_05.mdl", "models/humans/group17/male_06.mdl", "models/humans/group17/male_07.mdl", "models/humans/group17/male_08.mdl", "models/humans/group17/male_09.mdl" }

Chessnut commented 9 years ago

Can you list the error?

blt950 commented 9 years ago

Ah yes, I forgot to add you that.

[ERROR] gamemodes/hl2rp/schema/factions/sh_minister.lua:12: '}' expected (to close '{' at line 5) near '"models/humans/group17/male_01.mdl"'
  1. unknown - gamemodes/hl2rp/schema/factions/sh_minister.lua:0
FACTION.name = "Minister"
FACTION.desc = "A minsiter of a specific department"
FACTION.color = Color(237, 179, 97)
FACTION.isDefault = false
FACTION.models = {
    "models/humans/group17/female_01.mdl",
    "models/humans/group17/female_02.mdl",
    "models/humans/group17/female_03.mdl",
    "models/humans/group17/female_04.mdl",
    "models/humans/group17/female_06.mdl",
    "models/humans/group17/female_07.mdl"
    "models/humans/group17/male_01.mdl",
    "models/humans/group17/male_02.mdl",
    "models/humans/group17/male_03.mdl",
    "models/humans/group17/male_04.mdl",
    "models/humans/group17/male_05.mdl",
    "models/humans/group17/male_06.mdl",
    "models/humans/group17/male_07.mdl",
    "models/humans/group17/male_08.mdl",
    "models/humans/group17/male_09.mdl"
}
FACTION.pay = 20
FACTION.isGloballyRecognized = true

FACTION_MINISTER = FACTION.index
tltneon commented 9 years ago

You forgot a comma at line 12

blt950 commented 9 years ago

Well that's embarrasing - haha. Thanks.

Comrade11111 commented 7 years ago

One question how does one add models to factions and the models also have body groups that where checked?