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!

Change Ration Dispenser Ration?

Discussion in 'Requests' started by Ajax, Apr 5, 2018.

  1. Ajax

    Ajax Clockwork Customer

    I am putting this in plugin but I would like to know if it's possible to change the ration item that comes out of the ration dispenser. I have a seperate item I want coming out. Thanks.
     
  2. dead flag blues

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

    Yes.
     
    • Good Coder Good Coder x 1
  3. //waythink

    //waythink Clockwork Customer

    cw_rationdispenser -> shared.lua -> line 123:
    Code:
    local itemTable = Clockwork.item:CreateInstance("ration");
    -- change "ration" to any item you want
    or if you want to change the ration item, use those lines to change the items inside ration package
    Code:
            player:GiveItem(Clockwork.item:CreateInstance("citizen_supplements"), true);
            player:GiveItem(Clockwork.item:CreateInstance("breens_water"), true);
     
    Last edited: Apr 7, 2018
  4. Ajax

    Ajax Clockwork Customer

    Where is CW_RATIONDISPENSER located?
     
  5. //waythink

    //waythink Clockwork Customer

    gamemodes -> schema -> entities -> entities
     

Previous Readers (Total: 0)