s&box RPC Generator
Generate s&box [Rpc.Broadcast], [Rpc.Owner], and [Rpc.Host] method skeletons in C#. Configure NetFlags (Unreliable, Reliable, SendImmediate, DiscardOnDelay, HostOnly, OwnerOnly), define typed parameters, and copy ready-to-paste code with the right attribute, signature, and Rpc.Caller hook.
Calls the function on every connected client (including the host).
Lives on a Component — uses the GameObject's networking context.
Same type rules as [Sync] properties: unmanaged + string + GameObject / Component / GameResource.
Usage
Call it like a regular method — PlayOpenEffects( "bing", WorldPosition ) — and Facepunch's codegen will route the message according to the attribute you picked. Filter recipients with Rpc.FilterInclude / Rpc.FilterExclude inside a using block.
RPC Modes Cheat Sheet
| Attribute | Runs on |
|---|---|
| [Rpc.Broadcast] | Every client (including host). |
| [Rpc.Owner] | Just the owner of the networked object — host fallback if owner-less. |
| [Rpc.Host] | Just the host. |
NetFlags Reference
| Flag | Effect |
|---|---|
| NetFlags.Unreliable | Message will be sent unreliably. It may not arrive and it may be received out of order. But chances are that it will arrive on time and everything will be fine. This is good for sending position updates, or spawning effects. This is the fastest way to send a message. It is also the cheapest. |
| NetFlags.Reliable | Message will be sent reliably. Multiple attempts will be made until the recipient has received it. Use this for things like chat messages, or important events. This is the slowest way to send a message. It is also the most expensive. |
| NetFlags.SendImmediate | Message will not be grouped up with other messages, and will be sent immediately. This is most useful for things like streaming voice data, where packets need to stream in real-time, rather than arriving with a bunch of other packets. |
| NetFlags.DiscardOnDelay | Message will be dropped if it can't be sent quickly. Only applicable to unreliable messages. |
| NetFlags.HostOnly | Only the host may call this action |
| NetFlags.OwnerOnly | Only the owner may call this action |
| NetFlags.UnreliableNoDelay | Message will be sent unreliably, not grouped up with other messages and will be dropped if it can't be sent quickly. |
Combine flags with |: [Rpc.Broadcast( NetFlags.Unreliable | NetFlags.OwnerOnly )].
Filtering Recipients
// Skip a specific player.
using ( Rpc.FilterExclude( c => c.SteamId == bannedSteamId ) )
{
PlayOpenEffects( "bing", WorldPosition );
}
// Send only to a specific connection.
using ( Rpc.FilterInclude( c => c.DisplayName == "Garry" ) )
{
PlayOpenEffects( "bing", WorldPosition );
}Filtering only applies to [Rpc.Broadcast]. Wrap the call in a using block — outside of it, broadcasts go to everyone again.
s&box RPC Generator — FAQ
Is this s&box RPC Generator free to use?
Yes, the s&box RPC Generator is 100% free — no signup required, no hidden fees, no downloads. Everything runs in your browser.
How accurate is the s&box RPC Generator?
Values are pulled from the s&box game files and community-verified formulas. Results match what you see in-game, and we update the tool when the game gets major patches.
Can I host a s&box server with XGamingServer?
Yes. XGamingServer offers instant s&box server hosting with mod support, automatic backups, DDoS protection, and 24/7 support. All popular game settings are pre-configured.
Does the RPC Generator work on mobile?
Yes, the RPC Generator is fully responsive and works on desktop, tablet, and mobile browsers.
You might also need
Launch Command Builder
Build the exact sbox-server.exe launch command — +game (published or local .sbproj), +hostname, +port, +net_query_port, +net_game_server_token, optional map package. Validates branch (main/staging) requirements and outputs ready-to-run Run-Server.bat / run-server.sh.
SteamCMD Builder
Generate copy-paste SteamCMD install/update scripts for the s&box Dedicated Server (app 1892930). Main vs staging branch toggle, validate option, anonymous login, side-by-side Windows .bat and Linux .sh.
users/config.json Generator
Visual editor for the s&box dedicated server admin file — add multiple Steam accounts with their SteamID64, display name, and claims (kick, ban, restart, plus your own custom claims). Validates SteamID format and outputs paste-ready users/config.json.
Steam ID Resolver
Convert any Steam profile URL, vanity URL, SteamID2 (STEAM_0:0:...), or SteamID3 ([U:1:...]) into the SteamID64 format that users/config.json and most server tools require. All formats shown side-by-side with copy buttons.

Config Tool Built Into XGamingServer
Get managed s&box hosting with this tool in your panel — configure, deploy, and play in minutes. No file uploads needed.