{"action":"closed","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/535","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/535/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/535/events","html_url":"https://github.com/Facepunch/garrysmod-requests/issues/535","id":94553040,"number":535,"title":"Call hook on convar change","user":{"login":"mooshbeef","id":5500669,"avatar_url":"https://avatars.githubusercontent.com/u/5500669?v=3","gravatar_id":"","url":"https://api.github.com/users/mooshbeef","html_url":"https://github.com/mooshbeef","followers_url":"https://api.github.com/users/mooshbeef/followers","following_url":"https://api.github.com/users/mooshbeef/following{/other_user}","gists_url":"https://api.github.com/users/mooshbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/mooshbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mooshbeef/subscriptions","organizations_url":"https://api.github.com/users/mooshbeef/orgs","repos_url":"https://api.github.com/users/mooshbeef/repos","events_url":"https://api.github.com/users/mooshbeef/events{/privacy}","received_events_url":"https://api.github.com/users/mooshbeef/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-12T10:16:04Z","updated_at":"2015-07-12T12:11:18Z","closed_at":"2015-07-12T12:11:18Z","body":"Currently the engine calls functions in the cvar library. This library can easily be merged into the hook library, which makes more sense as it is the central point of communication from the engine.\r\nAfter looking at the code, I can see why it has been made seperate; to optimize callbacks to specific convars rather than calling all callbacks for every convar change. But you could still add a hook.Call in cvar.OnConVarChanged. (please don't use ConvarChanged instead of OnConvarChanged as a hookname)"}}