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!

Change Ration Dispenser Ration?

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

  1. Ajax

    Ajax Clockwork Customer Active Member

    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 Active Member

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

    //waythink Clockwork Customer Active Member

    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 Active Member

    Where is CW_RATIONDISPENSER located?
     
  5. //waythink

    //waythink Clockwork Customer Active Member

    gamemodes -> schema -> entities -> entities
     

Previous Readers (Total: 0)