citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

Rcon not working #2831

Closed aqua3man closed 3 days ago

aqua3man commented 3 days ago

What happened?

Config set: rcon_password somerconpass

Use IceCon or other client. Rcon passwrod config is loaded though is ignored. Server responds: The server must set rcon_password to be able to use this command.

Expected result

Allow access as previous versions did.

Reproduction steps

  1. Set password in config "rcon_password somerconpass"
  2. Try to login through rcon with IceCon
  3. Fails with message: The server must set rcon_password to be able to use this command.

Importancy

Unknown

Area(s)

FiveM

Specific version(s)

Server 10072 Linux

Additional information

No response

FabianTerhorst commented 3 days ago

You have to set the rcon password with “set rcon_password somerconpass“. The variable got enforced to be read only for security reasons.

Mathu-lmn commented 3 days ago

Yes, I was about to say that aswell. Tho the confusion comes from this tutorial by ZAP Hosting I believe : https://zap-hosting.com/guides/docs/fivem-rcon/ They don't mention that the set on the cfg is required now

aqua3man commented 3 days ago

Thanks, i was reading fivem docs and there were no mention about this. Thanks for clearing it up.