CharTransfer command
Command defined in core/commands/sh_chartransfer.lua
Registers the operator command /CharTransfer (aliases /Transfer, /PlyTransfer), which moves the target
character to another faction through that faction's OnTransferred callback.
Summary
Methods
OnRun(player, arguments)shared
Moves the target character to another faction; arguments are the name, the faction and optional data.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/catwork/gamemode/core/commands/sh_chartransfer.lua:16Moves the target character to another faction; arguments are the name, the faction and optional data.
The faction must define OnTransferred, which receives the optional third argument; the character is then
reloaded in the new faction.
Parameters
- player
- arguments