FactoryDispenserAdd command
Command defined in plugin/commands/sh_factorydispenseradd.lua
Part of Ration Factory
Registers the superadmin command /FactoryDispenserAdd of the Ration Factory plugin, which spawns a
cw_factorydispenser for Breen's Water or citizen supplements where the player is looking.
Originally written for the Iron Wall community.
Summary
Methods
OnRun(player, arguments)shared
Spawns a factory dispenser where the player looks, facing them.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/cwhl2rp/plugins/rationfactory/plugin/commands/sh_factorydispenseradd.lua:16Spawns a factory dispenser where the player looks, facing them.
Argument 1 picks the item it dispenses: 1 for breens_water, 2 for citizen_supplements.
Parameters
- player
- arguments