{"action":"created","issue":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/2411","repository_url":"https://api.github.com/repos/FPtje/DarkRP","labels_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2411/labels{/name}","comments_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2411/comments","events_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2411/events","html_url":"https://github.com/FPtje/DarkRP/issues/2411","id":147271367,"number":2411,"title":"LuA error when setting first superadmin on vanilla gmod + darkrp (no addons)","user":{"login":"rickyrb","id":18384620,"avatar_url":"https://avatars.githubusercontent.com/u/18384620?v=3","gravatar_id":"","url":"https://api.github.com/users/rickyrb","html_url":"https://github.com/rickyrb","followers_url":"https://api.github.com/users/rickyrb/followers","following_url":"https://api.github.com/users/rickyrb/following{/other_user}","gists_url":"https://api.github.com/users/rickyrb/gists{/gist_id}","starred_url":"https://api.github.com/users/rickyrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickyrb/subscriptions","organizations_url":"https://api.github.com/users/rickyrb/orgs","repos_url":"https://api.github.com/users/rickyrb/repos","events_url":"https://api.github.com/users/rickyrb/events{/privacy}","received_events_url":"https://api.github.com/users/rickyrb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-10T21:46:05Z","updated_at":"2016-04-10T23:25:24Z","closed_at":null,"body":"[//]: # (DO NOT REMOVE THIS TEMPLATE.)\r\n[//]: # (GITHUB ISSUES ARE **NOT** FOR HELP)\r\n[//]: # (GO TO THE FORUMS INSTEAD: http://forum.darkrp.com/ )\r\n\r\n### Description of the bug\r\n[//]: # (Describe the issue as accurately as possible)\r\nUnable to set superadmin on a fresh darkrp server with no addons or modifications.\r\n\r\n### How to make the bug happen\r\n[//]: # (Knowing how to make a bug happen allows the developers to figure out)\r\n[//]: # (what the cause of the problem is and whether a certain fix solves it)\r\nWhen using the command to set the first superadmin (server console)\r\n\"fadmin setaccess \"STEAM:0:1:1122334455 superadmin\"\r\n\r\nTrying to set a superadmin ingame causes the same lua error.\r\n\r\n\r\n### Lua errors\r\n[//]: # (Note that errors on server startup are more important than other ones)\r\n[//]: # (because they can cause other errors. Always look in the startup log of the server!)\r\nhttp://pastebin.com/A0caTNQc\r\nonly lua_errors_server.txt was generated\r\n\r\n### Why the developer of DarkRP is responsible for this issue\r\n[//]: # (By posting on Github, you ask the developers of DarkRP to solve the problem)\r\n[//]: # (It may seem obvious to you, but you have to make clear why they are the right people to look at it)\r\nI think this is caused after the recent hot fixes and updates by garry, maybe those updates screw some things over, the server im using is just a plain just fresh out of the box on a bracked with windows server 2012, and for the rest SteamCMD and gmod + darkrp installed.\r\n\r\nif you could look at it, it would be appreciated, if there is nothing wrong with it, i would gladly take it to the forums and i would deeply apologize for the false report.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/comments/208090636","html_url":"https://github.com/FPtje/DarkRP/issues/2411#issuecomment-208090636","issue_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2411","id":208090636,"user":{"login":"Bo98","id":1190754,"avatar_url":"https://avatars.githubusercontent.com/u/1190754?v=3","gravatar_id":"","url":"https://api.github.com/users/Bo98","html_url":"https://github.com/Bo98","followers_url":"https://api.github.com/users/Bo98/followers","following_url":"https://api.github.com/users/Bo98/following{/other_user}","gists_url":"https://api.github.com/users/Bo98/gists{/gist_id}","starred_url":"https://api.github.com/users/Bo98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bo98/subscriptions","organizations_url":"https://api.github.com/users/Bo98/orgs","repos_url":"https://api.github.com/users/Bo98/repos","events_url":"https://api.github.com/users/Bo98/events{/privacy}","received_events_url":"https://api.github.com/users/Bo98/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T23:25:24Z","updated_at":"2016-04-10T23:25:24Z","body":"It's caused by a bad server console check: https://github.com/FPtje/DarkRP/blob/0d2e44709e9c37fbc3f0e1f9fb92c5031b179a1b/gamemode/modules/fadmin/fadmin/access/sv_init.lua#L315 (although calling `:EntIndex()` on the server console \"entity\" returns 0, it is because it is a NULL entity rather than it representing the worldspawn entity that's returned by `Entity(0)`)"}}