{"action":"closed","issue":{"url":"https://api.github.com/repos/damospiderman/samp.js/issues/45","labels_url":"https://api.github.com/repos/damospiderman/samp.js/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/damospiderman/samp.js/issues/45/comments","events_url":"https://api.github.com/repos/damospiderman/samp.js/issues/45/events","html_url":"https://github.com/damospiderman/samp.js/issues/45","id":98533285,"number":45,"title":"'ScriptInit' callback not called if script loaded via \"loadjs\" rcon command","user":{"login":"andievandy","id":5107347,"avatar_url":"https://avatars.githubusercontent.com/u/5107347?v=3","gravatar_id":"","url":"https://api.github.com/users/andievandy","html_url":"https://github.com/andievandy","followers_url":"https://api.github.com/users/andievandy/followers","following_url":"https://api.github.com/users/andievandy/following{/other_user}","gists_url":"https://api.github.com/users/andievandy/gists{/gist_id}","starred_url":"https://api.github.com/users/andievandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andievandy/subscriptions","organizations_url":"https://api.github.com/users/andievandy/orgs","repos_url":"https://api.github.com/users/andievandy/repos","events_url":"https://api.github.com/users/andievandy/events{/privacy}","received_events_url":"https://api.github.com/users/andievandy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-01T12:13:08Z","updated_at":"2015-08-02T10:09:19Z","closed_at":"2015-08-02T10:09:19Z","body":"v0.1.9.6 on SAMP 0.3.7 R2-1 running on Windows 10\r\n\r\nas the title says. It works fine on scripts that loaded via \"jsfiles\" on \"server.cfg\".\r\n\r\nand (actually don't know how to explain this) when startup, in v0.1.9.6 the module from all those scripts are loaded first then the scripts themselves:\r\n```\r\n\r\n[19:58:34] [samp.js] v8 Engine version 4.3.61.23 loaded.\r\n[19:58:34] [samp.js] MySQL library version 6.1.6 loaded.\r\n[19:58:34] [samp.js] Loading Module: Utils\r\n[19:58:34] [samp.js] Loading Module: Timers\r\n[19:58:34] [samp.js] Loading Module: Events\r\n[19:58:34] [samp.js] Loading Module: Players\r\n[19:58:34] [samp.js] Loading Module: FileSystem\r\n[19:58:34] [samp.js] Loading Module: Sockets\r\n[19:58:34] [samp.js] Loading Module: HTTP\r\n[19:58:34] [samp.js] Loading Module: MySQL\r\n[19:58:34] [samp.js] Loading Module: Server\r\n[19:58:34] [samp.js] Loading Module: Utils\r\n[19:58:34] [samp.js] Loading Module: Timers\r\n[19:58:34] [samp.js] Loading Module: Events\r\n[19:58:34] [samp.js] Loading Module: Players\r\n[19:58:34] [samp.js] Loading Module: FileSystem\r\n[19:58:34] [samp.js] Loading Module: Sockets\r\n[19:58:34] [samp.js] Loading Module: HTTP\r\n[19:58:34] [samp.js] Loading Module: MySQL\r\n[19:58:34] [samp.js] Loading Module: Server\r\n[19:58:34] [samp.js] Loading Module: Utils\r\n[19:58:34] [samp.js] Loading Module: Timers\r\n[19:58:34] [samp.js] Loading Module: Events\r\n[19:58:34] [samp.js] Loading Module: Players\r\n[19:58:34] [samp.js] Loading Module: FileSystem\r\n[19:58:34] [samp.js] Loading Module: Sockets\r\n[19:58:34] [samp.js] Loading Module: HTTP\r\n[19:58:34] [samp.js] Loading Module: MySQL\r\n[19:58:34] [samp.js] Loading Module: Server\r\n[19:58:34] \r\n----------------------------------\r\n[19:58:34]  LVDM by Jax\r\n[19:58:34]  Rewritten to samp.js\r\n[19:58:34] ----------------------------------\r\n\r\n[19:58:34] \r\n----------------------------------\r\n[19:58:34]  Real Time System loaded\r\n[19:58:34] ----------------------------------\r\n\r\n[19:58:34] \r\n----------------------------------\r\n[19:58:34]  test\r\n[19:58:34] ----------------------------------\r\n```\r\n\r\nin v0.1.9.5 and earlier modules on other scripts are loaded after 1 script finished to load:\r\n```\r\n\r\n[21:11:02] [samp.js] v8 Engine version 4.3.61.23 loaded.\r\n[21:11:02] [samp.js] MySQL library version 6.1.6 loaded.\r\n[21:11:02] [samp.js] Loading Module: Utils\r\n[21:11:02] [samp.js] Loading Module: Timers\r\n[21:11:02] [samp.js] Loading Module: Events\r\n[21:11:02] [samp.js] Loading Module: Players\r\n[21:11:02] [samp.js] Loading Module: FileSystem\r\n[21:11:02] [samp.js] Loading Module: Sockets\r\n[21:11:02] [samp.js] Loading Module: HTTP\r\n[21:11:02] [samp.js] Loading Module: MySQL\r\n[21:11:02] [samp.js] Loading Module: Server\r\n[21:11:02] \r\n----------------------------------\r\n[21:11:02]  LVDM by Jax\r\n[21:11:02]  Rewritten to samp.js\r\n[21:11:02] ----------------------------------\r\n\r\n[21:11:02] [samp.js] Loading Module: Utils\r\n[21:11:02] [samp.js] Loading Module: Timers\r\n[21:11:02] [samp.js] Loading Module: Events\r\n[21:11:02] [samp.js] Loading Module: Players\r\n[21:11:02] [samp.js] Loading Module: FileSystem\r\n[21:11:02] [samp.js] Loading Module: Sockets\r\n[21:11:02] [samp.js] Loading Module: HTTP\r\n[21:11:02] [samp.js] Loading Module: MySQL\r\n[21:11:02] [samp.js] Loading Module: Server\r\n[21:11:02] \r\n----------------------------------\r\n[21:11:02]  test\r\n[21:11:03] ----------------------------------\r\n\r\n[21:11:03] [samp.js] Loading Module: Utils\r\n[21:11:03] [samp.js] Loading Module: Timers\r\n[21:11:03] [samp.js] Loading Module: Events\r\n[21:11:03] [samp.js] Loading Module: Players\r\n[21:11:03] [samp.js] Loading Module: FileSystem\r\n[21:11:03] [samp.js] Loading Module: Sockets\r\n[21:11:03] [samp.js] Loading Module: HTTP\r\n[21:11:03] [samp.js] Loading Module: MySQL\r\n[21:11:03] [samp.js] Loading Module: Server\r\n[21:11:03] \r\n----------------------------------\r\n[21:11:03]  Real Time System loaded\r\n[21:11:03] ----------------------------------\r\n```\r\nhere's my \"jsfiles\":\r\n```jsfiles gamemode.js test.js realtime.js```\r\nis it normal?"}}