Functions/DarkRP/Server/talkToRange
Function | |
Function name | DarkRP.talkToRange(Player ply, string playerName, string message, number size) |
Description: | |
Send a chat message to people close to a player. | |
Returns: | nil |
Part of Library: | DarkRP |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/talkToRange]DarkRP.talkToRange[/url][/b] |
Function parameters[edit]
- ply (Player)
- playerName (string)
- message (string)
- size (number)
The sender of the message.
The name of the sender of the message.
The actual message.
The radius of the circle in which players can see the message in chat.
Function return values[edit]
This function does not return any value.
Example Code[edit]
concommand.Add("mecommand", function(ply,_,text) DarkRP.talkToRange(ply, ply:Nick() .. " " .. text, "", GAMEMODE.Config.meDistance) end)
Result of Code: Pavetr performed some /me action