Guest User

Untitled

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. function helpHandler(source, cmd, arg)
  2.     outputDebugString("help command handler run")
  3.     if (arg == "shop" or arg == "buy") then
  4.         outputChatBox("#FF2020[Usage]: #FFFFFF/buy <item> #FF2020- #FFFFFFUse /buy to get a full list of items available.", source, 255, 255, 255, true)
  5.     elseif arg == "commands" then
  6.         outputChatBox("#FF2020[Commands]: #FFFFFFShop: /buy or /shop", source, 255, 255, 255, true)
  7.         outputChatBox("#FF2020[Commands]: #FFFFFF/nextmap, /carcolor", source, 255, 255, 255, true)
  8.     elseif arg == "nextmap" then
  9.         outputChatBox("#FF2020[Usage]: #FFFFFF/nextmap <part of map name> #FF2020- #FFFFFFCannot be cancelled once set.", source, 255, 255, 255, true)
  10.     elseif arg == "carcolor" then
  11.         outputChatBox("#FF2020[Info]: #FFFFFFApplies your preferred car color on spawn and vehicle change.", source, 255, 255, 255, true)
  12.         outputChatBox("#FF2020[Info]: #FFFFFFThis does not work on maps that set car color.", source, 255, 255, 255, true)
  13.         outputChatBox("#FF2020[Info]: #FFFFFFColor 1 and Color 2 represent GTA color codes.", source, 255, 255, 255, true)
  14.         outputChatBox("#FF2020[Info]: #FFFFFFRed, Green, Blue are RGB colors. (0-255 each)", source, 255, 255, 255, true)
  15.         outputChatBox("#FF2020[Usage]: #FFFFFF/carcolor <Color 1> <Color 2> #FF2020OR", source, 255, 255, 255, true)
  16.         outputChatBox("#FF2020[Usage]: #FFFFFF/carcolor <Red 1> <Green 1> <Blue 1> <Red 2> <Green 2> <Blue 2>", source, 255, 255, 255, true)
  17.     else
  18.         outputChatBox("#FF2020[Help]: #FFFFFFUse #AAFFAA/help commands #FFFFFFfor a full list of commands available.", source, 255, 255, 255, true)
  19.         outputChatBox("#FF2020[Help]: #FFFFFFF1 - Car hider", source, 255, 255, 255, true)
  20.         outputChatBox("#FF2020[Help]: #FFFFFFF2 - Car fader", source, 255, 255, 255, true)
  21.         outputChatBox("#FF2020[Help]: #FFFFFF/help <command> to get more info about a specific command.", source, 255, 255, 255, true)
  22.     end
  23. end
  24. addCommandHandler('help', helpHandler)
Add Comment
Please, Sign In to add comment