• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Adding vending machine to my trader

Petite

New member
So I built a trader and I added some vending machine for players to use, the thing is the one I have in my admin menu are at my name so players can't rent it.

How do we add or change the thing to able players to rent it. I saw lots server having them working, I just dont get how.

 
traders.xml bottom

<!-- Player Owned - Vending Machine -->

<trader_info id="3" reset_interval="-1" override_buy_markup="1.0" override_sell_markup="1.0" allow_sell="false" player_owned="true" />

<!-- Vending Machines found in the world. -->

<trader_info id="4" reset_interval="1" override_buy_markup="1.0" allow_sell="false" min_inventory="6" max_inventory="13" min_items_swapped="6" max_items_swapped="13">

<!-- Rented - Vending Machine -->

<trader_info id="5" reset_interval="-1" override_buy_markup="1.0" override_sell_markup="1.0" allow_sell="false" rentable="true" rent_cost="2500" rent_time="30" />

 
traders.xml bottom<!-- Player Owned - Vending Machine -->

<trader_info id="3" reset_interval="-1" override_buy_markup="1.0" override_sell_markup="1.0" allow_sell="false" player_owned="true" />

<!-- Vending Machines found in the world. -->

<trader_info id="4" reset_interval="1" override_buy_markup="1.0" allow_sell="false" min_inventory="6" max_inventory="13" min_items_swapped="6" max_items_swapped="13">

<!-- Rented - Vending Machine -->

<trader_info id="5" reset_interval="-1" override_buy_markup="1.0" override_sell_markup="1.0" allow_sell="false" rentable="true" rent_cost="2500" rent_time="30" />

Not too sure what you want me to do there, I never touched that file before. Can you tell me please.

 
Those are the three vending machine profiles in the game.

For the vending machine you added, you need to use extends to the one that offers the options you desire. from what you worote it would be the last one <trader_info id="5" next to your id for the machine you created you would need to add extends and point to this id. to inherite properties. to see exact syntax, in notepad++ do search for extends.

 
Back
Top