Hello Everyone !!
I want to attach my server-side command to client-side script and it's attach well no error appear but it doesn't work !! ...
Server-side cmd :
if (cmd == "cmds")
{
local str = Stream();
str.WriteInt(12);
str.WriteString("Command");
}
Client-side function :
function Server::ServerData(stream)
{
local stint = stream.ReadInt();
local stread = stream.ReadString();
if (stint==12) {
if (stread == "Command") {
Console.print("Working");
}
}
}
You need to send the stream, Stream.SendStream( Player Instance [ null = everyone ] );
if (cmd == "cmds")
{
local str = Stream();
str.WriteInt(12);
str.WriteString("Command");
str.SendStream( player );
}
Thanks
@Doom_Kill3R It's Working Fine Now !! :)
Topic Locked !!
its getting much exhauting