Messages - Partixel/v-handle GitHub Wiki

You can send players messages with a nice compact function, there is so much you can do with it, that it deserves its own page.

Start off with the actual function and some basic information: vh.ChatUtil.SendMessage(Message, Recipient)

Using pre-cached strings is as simple as adding the name of the string into the message at the position you want it.

Here is a list of the default pre-cached strings:

  • _vh_ = "_RESET_ V-Handle _WHITE_ -- "
  • _nplr_ = "_red_ No valid players found"
  • _malias_ = "_red_ Multiple commands found using that alias"
  • _nperm_ = "_red_ You do not have permission to use this"
  • _lcore_ = "Loaded _lime_ Core _white_ files"

Use-able colors are as follows:

  • "_white_"
  • "_silver_"
  • "_gray_"
  • "_black_"
  • "_red_"
  • "_maroon_"
  • "_yellow_"
  • "_olive_"
  • "_lime_"
  • "_green_"
  • "_aqua_"
  • "_teal_"
  • "_blue_"
  • "_navy_"
  • "_fuchsia_"
  • "_purple_"
  • "_orange_"
  • "_reset_"

It is possible to add more colours using this code: vh.ChatUtil.Colors[_Color_] = Color(0xFF,0xFF,0xFF)

Here's an example of how you would use this message system: vh.ChatUtil.SendMessage("_lime_ " .. PlayerName .. " _white_ has ran the default command on _reset_ " .. vh.CreatePlayerList(Players))