You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this isn't technically a bug report, but I was told to post this here anyway by Heron.
I used to use Lua's io.write(message) to be able to guarantee certain server console output will never get redirected to a client, e.g. when executing a command. io.write would just print directly to stdout without triggering the redirect. This no longer works as of build 12092 (not exact number) as io.write doesn't exist anymore. It worked in 11516.
Since io.write doesn't exist anymore, and JavaScript's similar process.stdout.write is also apparently planned to be removed, I'd like to suggest a way to prevent these redirects from happening.
Thanks
Expected result
Prints to stdout
Reproduction steps
-- on the server:RegisterCommand('test', function()
print('this is a server-side print')
end)
Once a player executes the /test command from the code below, the output will be seen in the client's F8 console (and potentially stock chat). It's transmitted via a __cfx:internal:serverPrint S->C event. I think it would be good to have a way to print to the server's console in such cases without the player being able to read what it says.
Importancy
Unknown
Area(s)
FiveM, FXServer, ScRT: Lua
Specific version(s)
FXServer 12092
Additional information
No response
The text was updated successfully, but these errors were encountered:
It indeed doesn't do anything for this case, that has been included in our cfg for a while. Even if I manually invoke it again, it makes no difference, as seen below:
Yea looks like this logic isn't actually uses except to not print to the server, the scope destructor will still print to the client no matter what.
Wonder if people would be against all of this being the default and having to opt in to this forwarding & sending to the client as I don't think most people have liked this being the default anyways.
What happened?
Hello,
this isn't technically a bug report, but I was told to post this here anyway by Heron.
I used to use Lua's
io.write(message)
to be able to guarantee certain server console output will never get redirected to a client, e.g. when executing a command.io.write
would just print directly to stdout without triggering the redirect. This no longer works as of build 12092 (not exact number) as io.write doesn't exist anymore. It worked in 11516.Since
io.write
doesn't exist anymore, and JavaScript's similarprocess.stdout.write
is also apparently planned to be removed, I'd like to suggest a way to prevent these redirects from happening.Thanks
Expected result
Prints to stdout
Reproduction steps
Once a player executes the /test command from the code below, the output will be seen in the client's F8 console (and potentially stock chat). It's transmitted via a
__cfx:internal:serverPrint
S->C event. I think it would be good to have a way to print to the server's console in such cases without the player being able to read what it says.Importancy
Unknown
Area(s)
FiveM, FXServer, ScRT: Lua
Specific version(s)
FXServer 12092
Additional information
No response
The text was updated successfully, but these errors were encountered: