1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
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!

Uniform Item

Discussion in 'Development' started by Bot06, Jun 28, 2018.

  1. Bot06

    Bot06 Clockwork Customer

    Hello,

    I actually have a problem Im trying to make a industrial uniform item and a conscript hazmat uniform but I cant manage to make them changing the model of the player.

    Both of the addons:
    https://steamcommunity.com/sharedfiles/filedetails/?id=618272585
    https://steamcommunity.com/sharedfiles/filedetails/?id=172374701

    Here is my code ( took the resistance uniform as a base )
    Code:
    --[[
        © CloudSixteen.com do not share, re-distribute or modify
        without permission of its author ([email protected]).
    --]]
    
    local ITEM = Clockwork.item:New("clothes_base");
    
    ITEM.name = "ItemIndustrialUniform";
    ITEM.uniqueID = "industrial_uniform";
    ITEM.group = "industrial_uniforms";
    ITEM.weight = 3;
    ITEM.access = "u";
    ITEM.business = true;
    ITEM.protection = 0.1;
    ITEM.description = "ItemIndustrialUniformDesc";
    
    -- Called when a replacement is needed for a player.
    function ITEM:GetReplacement(player)
        if (string.lower(player:GetModel()) == "models/humans/group01/male_bms_citizen_npc.mdl") then
            return "models/industrial_uniforms/industrial_uniform.mdl";
        end;
    end;
    
    ITEM:Register();
    If you can manage to help me and giving me advice I would be really greatful !
     
  2. Viz

    Viz Legend Clockwork Customer Active Member

    Try this:
    Code:
    --[[
        © CloudSixteen.com do not share, re-distribute or modify
        without permission of its author ([email protected]).
    --]]
    
    local ITEM = Clockwork.item:New("clothes_base");
    
    ITEM.name = "ItemIndustrialUniform";
    ITEM.uniqueID = "industrial_uniform";
    ITEM.replacement = "models/industrial_uniforms/industrial_uniform.mdl";
    ITEM.weight = 3;
    ITEM.access = "u";
    ITEM.business = true;
    ITEM.protection = 0.1;
    ITEM.description = "ItemIndustrialUniformDesc";
    
    ITEM:Register();
    
     
    • Friendly Friendly x 1
  3. Bot06

    Bot06 Clockwork Customer

    Thanks it works I love you so hardly !
    Im having a last question do you know a plugin who allows you do edit your character's model as possible with a menu and not with commands (like something easy of use) please ?
     
  4. Roth

    Roth C16's furfag mascot (better than Cinder)

    there's the easy bodygroup tool on the workshop for all your bodygrouping needs, but skins and models will have to be changed with commands
     
  5. Viz

    Viz Legend Clockwork Customer Active Member

    You can use the scoreboard and click on player's icons, but other than that there's no simpler way.
     
  6. Bot06

    Bot06 Clockwork Customer

    Is there nothing like the old Duck's bodygroup customization plugin?
    [​IMG]
     
  7. dead flag blues

    dead flag blues "...ours is a world of nuclear giants..." Clockwork Customer Active Member

    It's very broken in the current version of CW.
     
  8. Bot06

    Bot06 Clockwork Customer

    Do you think people would've accept to fix it against money?
     
  9. Roth

    Roth C16's furfag mascot (better than Cinder)

  10. duck

    duck Phant0m Legend

  11. Viz

    Viz Legend Clockwork Customer Active Member

  12. sprite

    sprite better run through the jungle Active Member

    i believe @Zig made a fixed version
     
  13. Zig

    Zig Legend Clockwork Customer Active Member

    of course.. but only because i had to. i don't want to redistribute duck's plugin.
     

Previous Readers (Total: 0)