{"action":"created","issue":{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/109","labels_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/109/comments","events_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/109/events","html_url":"https://github.com/crosire/scripthookvdotnet/issues/109","id":79495455,"number":109,"title":"World.CurrentDate does not return","user":{"login":"RainerHilmer","id":207564,"avatar_url":"https://avatars.githubusercontent.com/u/207564?v=3","gravatar_id":"","url":"https://api.github.com/users/RainerHilmer","html_url":"https://github.com/RainerHilmer","followers_url":"https://api.github.com/users/RainerHilmer/followers","following_url":"https://api.github.com/users/RainerHilmer/following{/other_user}","gists_url":"https://api.github.com/users/RainerHilmer/gists{/gist_id}","starred_url":"https://api.github.com/users/RainerHilmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainerHilmer/subscriptions","organizations_url":"https://api.github.com/users/RainerHilmer/orgs","repos_url":"https://api.github.com/users/RainerHilmer/repos","events_url":"https://api.github.com/users/RainerHilmer/events{/privacy}","received_events_url":"https://api.github.com/users/RainerHilmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"JohnnyCrazy","id":3109892,"avatar_url":"https://avatars.githubusercontent.com/u/3109892?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyCrazy","html_url":"https://github.com/JohnnyCrazy","followers_url":"https://api.github.com/users/JohnnyCrazy/followers","following_url":"https://api.github.com/users/JohnnyCrazy/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyCrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyCrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyCrazy/subscriptions","organizations_url":"https://api.github.com/users/JohnnyCrazy/orgs","repos_url":"https://api.github.com/users/JohnnyCrazy/repos","events_url":"https://api.github.com/users/JohnnyCrazy/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyCrazy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/milestones/2","html_url":"https://github.com/crosire/scripthookvdotnet/milestones/2.0","labels_url":"https://api.github.com/repos/crosire/scripthookvdotnet/milestones/2/labels","id":1163169,"number":2,"title":"2.0","description":"","creator":{"login":"crosire","id":2057233,"avatar_url":"https://avatars.githubusercontent.com/u/2057233?v=3","gravatar_id":"","url":"https://api.github.com/users/crosire","html_url":"https://github.com/crosire","followers_url":"https://api.github.com/users/crosire/followers","following_url":"https://api.github.com/users/crosire/following{/other_user}","gists_url":"https://api.github.com/users/crosire/gists{/gist_id}","starred_url":"https://api.github.com/users/crosire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosire/subscriptions","organizations_url":"https://api.github.com/users/crosire/orgs","repos_url":"https://api.github.com/users/crosire/repos","events_url":"https://api.github.com/users/crosire/events{/privacy}","received_events_url":"https://api.github.com/users/crosire/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-06-13T15:10:11Z","updated_at":"2015-06-17T18:07:06Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-05-22T15:24:51Z","updated_at":"2015-06-19T13:01:59Z","closed_at":null,"body":"I tried to receive the current day of the week but this little spike demonstrates World.CurrentDate does not return because the spike can't make it to UI.ShowSubtitle anymore.\r\n\r\nusing System.Windows.Forms;\r\nusing Cyron43.GtaV.Common;\r\nusing GTA;\r\n\r\nnamespace GTAVSpikes\r\n{\r\n   /// <summary>\r\n   /// Do whatever you currently need to research here.\r\n   /// </summary>\r\n   public class DynamicSpike : Script\r\n   {\r\n      public DynamicSpike()\r\n      {\r\n         KeyDown += OnKeyDown;\r\n         UI.Notify(\"Spike is running.\");\r\n      }\r\n\r\n      private void OnKeyDown(object sender, KeyEventArgs e)\r\n      {\r\n         var testKey = new KeyContainer\r\n                       {\r\n                          Alt = false,\r\n                          Ctrl = false,\r\n                          Key = Keys.Space,\r\n                          Name = \"Test\",\r\n                          Shift = false\r\n                       };\r\n         if(KeyHandlingCommons.KeyIs(testKey, e))\r\n            DoTest();\r\n      }\r\n\r\n      private void DoTest()\r\n      {\r\n         UI.Notify(\"DoTest called.\");\r\n         var weekDay = World.CurrentDate.DayOfWeek;\r\n         UI.ShowSubtitle(\"Today is \" /* + weekDay*/); //Shows only when the line before is commented out.\r\n      }\r\n   }\r\n}"},"comment":{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/comments/113508508","html_url":"https://github.com/crosire/scripthookvdotnet/issues/109#issuecomment-113508508","issue_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/109","id":113508508,"user":{"login":"RainerHilmer","id":207564,"avatar_url":"https://avatars.githubusercontent.com/u/207564?v=3","gravatar_id":"","url":"https://api.github.com/users/RainerHilmer","html_url":"https://github.com/RainerHilmer","followers_url":"https://api.github.com/users/RainerHilmer/followers","following_url":"https://api.github.com/users/RainerHilmer/following{/other_user}","gists_url":"https://api.github.com/users/RainerHilmer/gists{/gist_id}","starred_url":"https://api.github.com/users/RainerHilmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainerHilmer/subscriptions","organizations_url":"https://api.github.com/users/RainerHilmer/orgs","repos_url":"https://api.github.com/users/RainerHilmer/repos","events_url":"https://api.github.com/users/RainerHilmer/events{/privacy}","received_events_url":"https://api.github.com/users/RainerHilmer/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T13:01:59Z","updated_at":"2015-06-19T13:01:59Z","body":":+1: "}}