Is it possible to run the command chat.say, which normally only works using the in-game console and then puts out a message from the own player. So I have a variable which sets which player runs that command?
Solved Chat.say with a variable as sending player? (Lua)
Discussion in 'Rust Development' started by LaserHydra, Mar 29, 2015.
-
rust.SendChatMessage()
-
^_^ I just forgot that :v -
Again: http://docs.oxidemod.org/#sendchatmessage
The syntax is rust.SendChatMessage(player, name, message, userid) while userid being optional.
player has to be a BasePlayer type - name, message and userid a string. -
kk thanks :v