Help with lua and console

Hey, how do i execute console commands in lua?
Console(“sv_chears”, “1”) <- example

Clientside: RunConsoleCommand(“sv_myweight”, “50lbs”)

Serverside: Player:ConCommand(“sv_myweight 50lbs”)
Serverside to console: game.ConsoleCommand(“sv_myweight 50lbs”)

(Some commands, like sv_cheats, are blocked for use with this. If you want to bypass that, use this module:

You can use RunConsoleCommand serverside aswell.

Thank you, game.ConsoleCommand is the one i need. I am using it for my addon to check if it’s up to date.