ArrowParams = util.TableToArray({ 60, System.ConsoleColor.Lime, box.transform.position, "<color=red>" .. "X" .. "</color>"})
global.ConsoleSystem.Broadcast("ddraw.text", ArrowParams)
Whats a replacement for ConsoleSystem.Broadcast (this will draw an X at a position on everyones screen)
Solved ConsoleSystem.Broadcast replacement for commands?
Discussion in 'Rust Development' started by Rusty, Jul 15, 2016.
-
Wulf Community Admin
See Solved - Replacement for ConsoleSystem.Broadcast? | Oxide.
Please search and review recent threads before posting a new.
-
I seen that but im not broadcasting chat, but your saying rust.BroadcastChat( will do what i want?
-
Wulf Community Admin
ConsoleSystem.BroadcastToAllClients
You can use Oxide's rust.SendClientCommand for sending a command though. -
Will give that a shot thanks, also the earlier error is fixed with new oxide.
-
Wulf Community Admin
I know, I said it was in the thread I merged your thread with.
-
None of those worked : /Code:
local pos = new( UnityEngine.Vector3._type, nil ) pos.x = math.random(-ts, ts); pos.y = pos.y+1500; pos.z = math.random(-ts, ts); local ArrowParams = util.TableToArray({ 60, System.ConsoleColor.Lime, pos, "<color=lime>" .. "X" .. "</color>"}) ConsoleSystem.BroadcastToAllClients("ddraw.text", ArrowParams) rust.SendClientCommand("ddraw.text", ArrowParams) -
Wulf Community Admin
You'd have to use global in Lua for ConsoleSystem; for rust.SendClientCommand you'd need to supply the player, so if you want to use that for all, you'd need to loop through all players. -
Solved with global.ConsoleNetwork.BroadcastToAllClients("ddraw.text", 60, System.ConsoleColor.Lime, pos, "<color=lime>" .. "X" .. "</color>")
-
wait so how can I use this to fix AdminRadar?
-
Wulf Community Admin
This is an old thread for when ConsoleSystem.Broadcast change to ConsoleNetwork.BroadcastToAllClients; unrelated to ddraw.text not working. -
Oh. Ok
-
is there an alternative to my global.ConsoleNetwork.BroadcastToAllClients("ddraw.text", 60, System.ConsoleColor.Lime, pos, "<color=lime>" .. "X" .. "</color>") command ?
All i need is some sort of marker on pos, doesnt have to be ddraw.text -
Wulf Community Admin
Use the 'find ddraw' command on your client, there are many options. -
ah..the vague put me to work answers lol ..find ddraw returns nothing in rcon ..i know theres ddraw.box and stuff i was hoping for someone to paste something
-
Wulf Community Admin
It's a client command, you'd have to check your client or the DLLs. ddraw.box, ddraw.arrow, etc. -
ddraw is a client side command so you need to run find on the client
-
found this in dll Gyazo - 7f5d10d5a62779be304ff80d203ef279.png
im pretty sure my structure is right global.ConsoleNetwork.BroadcastToAllClients("ddraw.text", 60, System.ConsoleColor.Lime, pos, "<color=lime>" .. "X" .. "</color>") -
Wulf Community Admin
That isn't going to help you... ddraw.text is broken, remember? You're using the exact same thing you used previously, it hasn't changed. -
Hopefully Unity patched it already so it can be used for tomorrow's update.
