{"name":"serverNamespace","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","games":{"arma3":"2.06"},"since":"arma3 2.06","arma3_since":"2.06","locality":{"server_exec":true},"description":"Returns server's namespace.\nThis namespace is only available on the server for the server's uptime duration (same as uiNamespace).\nAll server event handlers, which are available in server config, use this namespace.","syntaxes":[{"syntax":"serverNamespace","params":[],"returns":{"type":"Namespace","type_expr":"Namespace | Nothing","description":"on the server, Nothing on clients or in single-player.","text":"Namespace on the server, Nothing on clients or in single-player."},"form":"nullary"}],"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};"]}],"see_also":["missionNamespace","setVariable","getVariable","allVariables"]}