Two Formats of shared.lua files?

Ok, this might be EXTREAMLY NOOBY. I may be one step away from getting it correct or i’m to blind to see, but here it is.

I’m looking around and i find this for a shared.lua extra job code.


TEAM_class = AddExtraTeam( "S.W.A.T", Color( 0, 0, 0, 255 ), "models/player/swattyac.mdl", [[your the swat patrol and dont get killed earn alot of cash]], {"arrest_stick", "keys", "door_ram", "pocket", "stunstick", "unarrest_stick", "weaponchecker", "weapon_deagle2", "weapon_m42", "weapon_mp52", "weapon_pumpshotgun2"}, "class", 4, 1000, 1, 0, true )

TEAM_class = AddExtraTeam( "Pet ", Color( 0, 0, 0, 255 ), "models/player/renamon_b5.mdl", [[Get adopted]], {"keys", "pocket"}, "class", 1, 45, 0, 0, false )

TEAM_class = AddExtraTeam( "citizen", Color( 0, 0, 0, 255 ), "models/player/Group01/male_06.mdl", [[avrege person]], {"keys", "pocket"}, "class", 1, 45, 0, 0, false )


And it goes on…
But it says to put it in your shared.lua file.

Heres the problem.

My shared lua has a totally different format.

Mines…


TEAM_CITIZEN = AddExtraTeam("Citizen", {
        color = Color(20, 150, 20, 255),
        model = {
                "models/player/Group01/Female_01.mdl",
                "models/player/Group01/Female_02.mdl",
                "models/player/Group01/Female_03.mdl",
                "models/player/Group01/Female_04.mdl",
                "models/player/Group01/Female_05.mdl",
                "models/player/group01/male_01.mdl",
                "models/player/Group01/Male_02.mdl",
                "models/player/Group01/male_03.mdl",
                "models/player/Group01/Male_04.mdl",
                "models/player/Group01/Male_05.mdl",
                "models/player/Group01/Male_06.mdl",
                "models/player/Group01/Male_07.mdl",
                "models/player/Group01/Male_08.mdl",
                "models/player/Group01/Male_09.mdl"
        },
        description = [[The Citizen is the most basic level of society you can hold
                besides being a hobo.
                You have no specific role in city life.]],
        weapons = {},
        command = "citizen",
        max = 0,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
TEAM_HITMAN = AddExtraTeam("Hitman", {
        color = Color(20, 150, 20, 255),
        model = {
                "models/player/leet.mdl"
        },
        description = [[People pay you to murder others.
                You're only allowed to kill if you've been payed.
                Before you start allways type:
                /advert HIT ACCEPTED = You accepted a hit.
                /advert HIT DONE     = You killed the target.
                Do not abuse your permission to kill people!.]],
        weapons = {},
        command = "hitman",
        max = 2,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false
})
 

So asking, why are these too so different? Are they different versions?

one is just formatted correctly and has more models

The format doesn’t matter as long as the information is the same, but it looks nicer to have the values separated by lines.

So could I just use both then?

As long as you don’t have the same line twice then yes it is fine. Having the same team created multiple times may mess up darkrp.