1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

HL2RP Edit the Citizen models?

Discussion in 'Development' started by Michael Sandwich, Jan 28, 2018.

  1. Michael Sandwich

    Michael Sandwich Get your free TVs!

    I'm trying to make a new white list using the Casual Civilians Head pack with the Citizen faction as a base but i can't seem to find the line of code where i can edit the models

    I'm using the classic HL2RP as the 1.2 one is really buggy
    --[[
    © 2013 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local FACTION = Clockwork.faction:New("Citizen");

    FACTION.useFullName = true;
    FACTION.material = "halfliferp/factions/citizen";

    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    if (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);

    Clockwork.player:SetName(player, name, true);
    end;
    else
    return false, "You need to specify a name as the third argument!";
    end;
    end;
    end;

    FACTION_CITIZEN = FACTION:Register();
     
  2. Fear

    Fear Clockwork Customer

    -- oh shoot, snip that
     
    Last edited: Jan 28, 2018
  3. Michael Sandwich

    Michael Sandwich Get your free TVs!

Previous Readers (Total: 0)