kusanagy

custom say

Dec 30th, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local gsub = string.gsub
  2. local text = "[vip]: "
  3. local color = "|ccc399BFB"
  4. local function OnChatSpeak(event, player, msg, Type, lang) -- Can return false, newMessage
  5.    
  6.     player:Say(gsub(""..text..""..color..""..msg, "|r","|r", 0))
  7.     return false
  8.  
  9. end
  10.  
  11. RegisterPlayerEvent(18, OnChatSpeak)
Add Comment
Please, Sign In to add comment