可以使用 RCon 工具直接从服务器控制台界面、服务器配置文件、服务器命令行或使用ExecuteCommand函数（如果 ACL 允许该资源）执行控制台命令。
添加自定义 RCon 命令可以使用服务器上的 RegisterCommand 函数或
start lambda-menu start [cars]
Restarts the resource specified in the argument, if it was started. If it wasn’t, starts the resource specified in the argument.
stop, one can also specify a category name.
Restarts the resource specified in the argument, if it was started. Also supports category names.
Rescans the resources folder and loads all resource manifests in them, also making new resources available to start using start.
Runs the commands specified in the filename, relative to the server data directory, or any resource name specified with
Commonly seen as
FXServer.exe +exec server.cfg.
exec server_nested.cfg exec @vMenu/config/permissions.cfg
Exits the server, sending a default quit message to all connected players.
Exits the server, also sending the specified reason to all connected players.
quit "Restarting - will be back soon!"
Shows a list of players with their primary identifier, server ID, name, endpoint, and ping.
clientkick [id] [reason]
Kicks the client with the specified server ID (as seen in status) from the server, for the stated reason.
clientkick 43 You're a superstitious idiot!
Sends a message in the chat as console.
say Hi, everybody!
Opens or closes the server debug GUI.
Defines the game to run the server for.
FXServer.exe +set gamename rdr3
|gta4||LibertyM for GTA:NY|
|gta5||FiveM for GTA:Five|
|rdr3||RedM for RDR3|
Defines which mode of state awareness to use.
- Off: No state awareness at all, clients will use the standard GTA/RAGE P2P networking model, and the server will only function as a relay.
- On: Full state awareness and server-determined entity routing.
- Legacy: Compatibility mode for scripts that expect all players to exist on each client. Not recommended due to performance issues and graphical glitches.
Selects a game build for clients to use. This can only be specified at startup, and can not be changed at runtime.
sv_enforceGameBuild h4 sv_enforceGameBuild mptuner sv_enforceGameBuild 1355
Every build includes all content and changes from the builds before.
|1604||xm18, christmas2018, mpchristmas2018||Arena War|
|-||-||The Diamond Casino & Resort|
|-||-||Diamond Casino Heist|
|2060||sum, mpsum||Los Santos Summer Special|
|2189||h4, heist4, mpheist4||Cayo Perico Heist|
|2372||tuner, mptuner||Los Santos Tuners|
|2545||security, mpsecurity||The Contract|
|2699||mpsum2||The Criminal Enterprises|
|2802||mpchristmas3||Los Santos Drug Wars|
|1311||Mid 2020 update, not compatible with Red Dead Online licenses.|
|1355||December 2020 update, works with newer game editions such as RDO.|
|1436||July 2021 update, includes new content from Blood Money DLC.|
|1491||September 2022 update, limited content/changes.|
A variable that specifies the maximum amount of clients that the server can normally have, as an integer from 1 to 1024.
Values starting at 32 will require
onesync to be set to
legacy, and values above 64 will require
onesync to be set to
A boolean variable that, if true, hides player IP addresses from public reports output by the server.
sets sv_projectName "project name"
A string variable containing the name of your ‘project’, which would for example be the server’s community. This should be a name, not a list, nor should it contain tags.
Any non-compliant name will be cut off in the server list.
sets sv_projectName "Citizen Gaming" # or if you are using a premium key, it can contain one color sets sv_projectName "^6Citizen Gaming"
sets sv_projectDesc "project description"
A string variable containing the description of your project. This should be written as a sentence.
sets sv_projectDesc "Your favorite drug deal simulation community!"
A string variable that contains the server-specific host name. In addition to this, you may want to set
A string variable that can be used to set the server as “private”, making it not possible to join by using the server browser UI (the server connect button will be disabled). In the past, this specific string variable dictated where heartbeats were sent and servers weren’t listed if the address didn’t point to FiveM’s ingress address, this is no longer the case, the server will always post to the default server ingress on startup. In other words, this string variable cannot be used to de-list a server from the master list.
Variance is how likely the user’s id will change for a given provider (i.e. ‘steam’, ‘ip’, or ’license’).
A console variable as an integer from 1-5 (default 5); from least to most likely to change.
Trust is how unlikely it is for the user’s identity to be spoofed by a malicious client.
A console variable as an integer from 1-5 (default 1); from least to most trustworthy (5 being a method such as external three-way authentication).
A console variable used to block
REQUEST_CONTROL_EVENT routing based on a configurable policy.
Supported modes for this variable are as follows:
- -1: Default, equivalent to 2 at this time, but will also warn in console.
- 0: Off. Also disables the routing bucket/entity lockdown-based policy.
- 1: Blocks control requests to entities controlled by players (currently, occupied vehicles only) that have existed for more than
30000) - hereafter referred to as ‘settled’.
- 2: Blocks control requests to all entities controlled by players.
- 3: Blocks control requests to all entities controlled by players, and any ‘settled’ non-player entities.
- 4: Does not route
In addition, any mode but ‘off’ will have some additional checks as well:
- Control request events can’t be routed across routing buckets.
- Control request events will always be blocked if the sender is in ‘strict’ entity lockdown mode, either by the global mode setting, or their routing bucket being set to such.
con_channelFilters command will list any active channel filters set to the end user.
A channel is the prefix of a console message, for 示例：
citizen-server-impl, this channel will be displayed in brackets in the console followed by a message, i.e.
[citizen-server-impl] Found 44 resources.
Filters can be used to alter console output behavior.
Different actions exist to alter this behavior:
|noprint||Will stop anything from being printed at a trace listener level.|
|drop||Will cause the output to be dropped at
[cmd] forward:*/*: noprint
con_addChannelFilter [filter] [action]
con_addChannelFilter command will add a channel filter which can be used to filter console channel output.
Regex can be used for channel filters, this can be set through the
filter command parameter.
Available actions are explained up above (con_channelFilters command).
The example down below would stop any channel output coming from script names matching the given pattern.
So the following wouldn’t show on the console:
[script:gamemodePrefix-turfs]: Hello world! [script:gamemodePrefix-derby]: This is a test.
con_addChannelFilter script:gamemodePrefix-* noprint
con_removeChannelFilter [filter] [action]
con_removeChannelFilter command can be used to remove a channel filter, thus removing any previously applied actions (those applied via con_addChannelFilter).
You can use con_channelFilters to check for any active filters.
con_removeChannelFilter script:gamemodePrefix-* noprint
A console variable (default
30000 milliseconds) that allows you to set after how long (based on entity creation time in milliseconds) an entity should be blocked from a
REQUEST_CONTROL_EVENT. This will only apply to filter request control modes 1 and 3, which are detailed under
sv_filterRequestControl in this page.
A console variable used to prevent users from using modified client files. There currently are two pure mode levels (1 and 2), an explanation for these levels can be found below:
- 1: Will block all modified client files except audio files and known graphics mods.
- 2: Will block all modified client files.
If modified files are installed in the FiveM folder, they will be ignored - if users however modified base game files, they will receive an error message telling them what file is modified.
A console command which loads a specfied icon and sets it as the server icon. The icon needs to be a 96x96 PNG file.
Sets the RCon password. This being unset means RCon is disabled.
Sets a Steam Web API key, which is required to allow for Steam identifiers to be returned by the server.
Access control commands
add_ace [principal] [object] [allow|deny]
Adds an access control entry to the server’s access control list.
add_ace group.admin command.potato allow add_ace identifier.steam:110000112345678 command.apple deny
add_principal [child_principal] [parent_principal]
Sets a principal to inherit from another principal.
# makes identifier.steam:110000112345678 inherit from group.admin add_principal identifier.steam:110000112345678 group.admin
remove_ace [principal] [object] [allow|deny]
Removes a specified ACE from the server’s access control list.
remove_ace identifier.steam:110000112345678 command.apple deny
remove_principal [child_principal] [parent_principal]
Removes a specified principal inheritance entry.
remove_principal identifier.steam:110000112345678 group.admin
test_ace [principal] [object]
Tests if a principal is allowed or denied access to a given object.
test_ace group.admin command.adminstuff