# publicVariableServer ## Category Multiplayer ## Arity **Unary** — `publicVariableServer ""`. ``` publicVariableServer // quoted variable name ``` ## Description Sends the value of a global variable to the **server only** (not to other clients). The variable name is passed as a string. Useful for clients sending data to the server without broadcasting to everyone. **Placeholder/stub** — full networking implementation is the host's responsibility. ## How It Works Fires the host's public variable event targeted at the server only. More efficient than `publicVariable` when only the server needs the update. ## Usage ```sqf // Client sends request to server _playerAction = "ready"; publicVariableServer "_playerAction"; // Client reports position to server _clientPos = [1234, 5678, 0]; publicVariableServer "_clientPos"; ``` ## Thread Safety Depends on host implementation. ## See Also - [publicVariable](publicVariable.md) — broadcast to all - [publicVariableClient](publicVariableClient.md) — send to specific client - [remoteExec](remoteExec.md) — remote code execution