FiveM provides various console commands to players and server administrators. These commands can be used to manage the game and server, troubleshoot issues, and enable various features. Below is a list of some commonly used console commands in FiveM.
Console Commands List
- /restart [resource_name]
- Restarts a specific resource.
- Example: /restart myscript
- /refresh
- Refreshes all resources on the server.
- /start [resource_name]
- Starts a specific resource.
- Example: /start myscript
- /stop [resource_name]
- Stops a specific resource.
- Example: /stop myscript
- /set [player_id] [variable_name] [value]
- Sets a variable for a specific player.
- Example: /set 1 health 100
- /kick [player_id] [reason]
- Kicks a specific player from the server.
- Example: /kick 1 Cheating
- /ban [player_id] [reason]
- Bans a specific player from the server.
- Example: /ban 1 Cheating
- /unban [player_id]
- Unbans a specific player.
- Example: /unban 1
- /say [message]
- Sends a message to all players on the server.
- Example: /say The server will go down for maintenance.
- /weather [weather_type]
- Changes the weather.
- Example: /weather clear
- /time [time]
- Sets the time.
- Example: /time 12:00
- /tp [player_id] [target_id]
- Teleports a specific player to another player.
- Example: /tp 1 2
- /freeze [player_id]
- Freezes a specific player.
- Example: /freeze 1
- /unfreeze [player_id]
- Unfreezes a specific player.
- Example: /unfreeze 1
- /save
- Saves the server state.
- /load
- Loads a previously saved server state.
FiveM console commands provide great flexibility for server administrators and players to manage and improve their in-game experience. With these commands, you can regulate server operations, intervene with players, and optimize the overall gaming experience.