{"action":"created","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2473","repository_url":"https://api.github.com/repos/Facepunch/garrysmod-issues","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2473/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2473/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2473/events","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2473","id":136116377,"number":2473,"title":"OnViewModelChanged not being called clientside sometimes","user":{"login":"syl0r","id":1258762,"avatar_url":"https://avatars.githubusercontent.com/u/1258762?v=3","gravatar_id":"","url":"https://api.github.com/users/syl0r","html_url":"https://github.com/syl0r","followers_url":"https://api.github.com/users/syl0r/followers","following_url":"https://api.github.com/users/syl0r/following{/other_user}","gists_url":"https://api.github.com/users/syl0r/gists{/gist_id}","starred_url":"https://api.github.com/users/syl0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syl0r/subscriptions","organizations_url":"https://api.github.com/users/syl0r/orgs","repos_url":"https://api.github.com/users/syl0r/repos","events_url":"https://api.github.com/users/syl0r/events{/privacy}","received_events_url":"https://api.github.com/users/syl0r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-24T16:42:25Z","updated_at":"2016-02-24T17:04:20Z","closed_at":null,"body":"It seems like OnViewModelChanged is never called on clients when the SWEP:Deploy() hook wouldn't be called either (this is undocumented on the wiki). This makes it impossible to know when the localplayer has switched their weapons on the clientside, since all other hooks that could be used aren't called in those circumstances either."},"comment":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/comments/188354957","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2473#issuecomment-188354957","issue_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2473","id":188354957,"user":{"login":"syl0r","id":1258762,"avatar_url":"https://avatars.githubusercontent.com/u/1258762?v=3","gravatar_id":"","url":"https://api.github.com/users/syl0r","html_url":"https://github.com/syl0r","followers_url":"https://api.github.com/users/syl0r/followers","following_url":"https://api.github.com/users/syl0r/following{/other_user}","gists_url":"https://api.github.com/users/syl0r/gists{/gist_id}","starred_url":"https://api.github.com/users/syl0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syl0r/subscriptions","organizations_url":"https://api.github.com/users/syl0r/orgs","repos_url":"https://api.github.com/users/syl0r/repos","events_url":"https://api.github.com/users/syl0r/events{/privacy}","received_events_url":"https://api.github.com/users/syl0r/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T17:04:20Z","updated_at":"2016-02-24T17:04:20Z","body":"That's exactly my problem and I don't see why there isn't a hook for it. I am sure somehow the client has to know that it just switched weapons."}}