--[[ © 2011 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local FACTION = {}; FACTION.useFullName = true; FACTION.material = "halfliferp/factions/cwu"; FACTION.whitelist = true; FACTION.models = { female = { "models\humans/group02/female_02.mdl", "models\humans/group02/female_04.mdl", "models\humans/group02/female_07.mdl" }, male = { "models\humans/group02/male_02.mdl", "models\humans/group02/male_04.mdl", "models\humans/group02/male_06.mdl", "models\humans/group02/male_08.mdl" }; }; -- Called when a player is transferred to the faction. function FACTION:OnTransferred(player, faction, name) if ( openAura.schema:PlayerIsCombine(player) ) then if (name) then local models = self.models[ string.lower( player:QueryCharacter("gender") ) ]; if (models) then player:SetCharacterData("model", models[ math.random(#models) ], true); openAura.player:SetName(player, name, true); end; else return false, "You need to specify a name as the third argument!"; end; end; end; FACTION_CWU = openAura.faction:Register(FACTION, "Civil Workers Union");