how to get rid of "FCVAR_SERVER_CAN_EXECUTE" ?

hello guys, i have made a function that make a player join a other server but i keep getting this error.

FCVAR_SERVER_CAN_EXECUTE prevented server running command: connect

is there any way to get rid of that error?

use the module gm_cvar2 :slight_smile:

does that really work?

Why not try it yourself and see? That’s why he suggested it :downs:

[lua]
require(“cvar2”)
local VarToChange = //put what you want to change here
cvar2.SetFlags(VarToChange, cvar2.GetFlags(VarToChange) - FCVAR_SERVER_CAN_EXECUTE)
[/lua]