{"name":"serverNamespace","operator":null,"title":"serverNamespace","type":"command","url":"https://community.bistudio.com/wiki/serverNamespace","revid":351793,"updated":"2024-01-11T04:51:36Z","groups":["Namespaces","Variables","Multiplayer"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"description":"Returns server's namespace.\nThis namespace is only available on the server for the server's uptime duration (same as uiNamespace).\n\nAll server event handlers, which are available in server config, use this namespace.","syntaxes":[{"syntax":"serverNamespace","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":null,"types":["Namespace","Nothing"],"description":null,"text":"Namespace on the server, Nothing on clients or in single-player."},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nif (isServer) then\n{\n    hint str allVariables serverNamespace;\n}\nelse\n{\n    hint \"you do not have permission!\";\n};\n```","code":["if (isServer) then\n{\n\thint str allVariables serverNamespace;\n}\nelse\n{\n\thint \"you do not have permission!\";\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["missionNamespace","setVariable","getVariable","allVariables"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Command Group: Namespaces","Command Group: Variables","Introduced with Arma 3 version 2.06","Scripting Commands","Scripting Commands: Server Execution"]}