{"action":"opened","issue":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/2545","repository_url":"https://api.github.com/repos/FPtje/DarkRP","labels_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2545/labels{/name}","comments_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2545/comments","events_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2545/events","html_url":"https://github.com/FPtje/DarkRP/issues/2545","id":174787115,"number":2545,"title":"DarkRPDBInitialized hook does not get called","user":{"login":"MaZyGer","id":3738673,"avatar_url":"https://avatars.githubusercontent.com/u/3738673?v=3","gravatar_id":"","url":"https://api.github.com/users/MaZyGer","html_url":"https://github.com/MaZyGer","followers_url":"https://api.github.com/users/MaZyGer/followers","following_url":"https://api.github.com/users/MaZyGer/following{/other_user}","gists_url":"https://api.github.com/users/MaZyGer/gists{/gist_id}","starred_url":"https://api.github.com/users/MaZyGer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaZyGer/subscriptions","organizations_url":"https://api.github.com/users/MaZyGer/orgs","repos_url":"https://api.github.com/users/MaZyGer/repos","events_url":"https://api.github.com/users/MaZyGer/events{/privacy}","received_events_url":"https://api.github.com/users/MaZyGer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T15:31:49Z","updated_at":"2016-09-02T15:31:49Z","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\nmy sv_init.lua has a hook\r\n```\r\nhook.Add(\"DarkRPDBInitialized\", \"rpname_dialog_loadnames\", function()\r\n\tprint(\"[CHECK] DarkRP Database initialized\")\r\nend)\r\nprint(\"[CHECK] DarkRPDBInitialized hook added\")\r\n```\r\nThis \"[CHECK] DarkRPDBInitialized hook added\" gets printed after the map is loaded but not the print in the hook. I even waited maybe for 2 minutes. Still no print.\r\nI tried also with other hook which was \"DarkRPFinishedLoading\" and its working with it but yea database is not finished and I get error if I want to query.\r\n\r\nI am currently using tmysql4 (and mysql with mariadb) and all tables and entries are there. Even if rpname is changed the entries are updated\r\n\r\nI also have just darkrpmodification with mysql file and my addon. No any other addons or workshopfiles.\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\nI am not sure if this is a bug but create an autorun file and use this\r\n```\r\nif SERVER then\r\n\thook.Add(\"DarkRPDBInitialized\", \"test1231231232\", function()\r\n\t\tprint(\"[CHECK] DarkRP Database initialized\")\r\n\tend)\r\nend\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\nNo any errors\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\nBecause they did the hook and I need the hook :)"}}
{"actor":{"display_login":"MaZyGer"}}