{"action":"created","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/1900","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/1900/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/1900/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/1900/events","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/1900","id":62521373,"number":1900,"title":"Entity:SetNWEntity() causes Entity:SetNWBool() to fail","user":{"login":"EstevanTH","id":5159778,"avatar_url":"https://avatars.githubusercontent.com/u/5159778?v=3","gravatar_id":"","url":"https://api.github.com/users/EstevanTH","html_url":"https://github.com/EstevanTH","followers_url":"https://api.github.com/users/EstevanTH/followers","following_url":"https://api.github.com/users/EstevanTH/following{/other_user}","gists_url":"https://api.github.com/users/EstevanTH/gists{/gist_id}","starred_url":"https://api.github.com/users/EstevanTH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EstevanTH/subscriptions","organizations_url":"https://api.github.com/users/EstevanTH/orgs","repos_url":"https://api.github.com/users/EstevanTH/repos","events_url":"https://api.github.com/users/EstevanTH/events{/privacy}","received_events_url":"https://api.github.com/users/EstevanTH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/milestones/5","html_url":"https://github.com/Facepunch/garrysmod-issues/milestones/New%20NWVars","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/milestones/5/labels","id":1038061,"number":5,"title":"New NWVars","description":"Issues with new NWVars","creator":{"login":"robotboy655","id":3299036,"avatar_url":"https://avatars.githubusercontent.com/u/3299036?v=3","gravatar_id":"","url":"https://api.github.com/users/robotboy655","html_url":"https://github.com/robotboy655","followers_url":"https://api.github.com/users/robotboy655/followers","following_url":"https://api.github.com/users/robotboy655/following{/other_user}","gists_url":"https://api.github.com/users/robotboy655/gists{/gist_id}","starred_url":"https://api.github.com/users/robotboy655/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotboy655/subscriptions","organizations_url":"https://api.github.com/users/robotboy655/orgs","repos_url":"https://api.github.com/users/robotboy655/repos","events_url":"https://api.github.com/users/robotboy655/events{/privacy}","received_events_url":"https://api.github.com/users/robotboy655/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2015-03-25T12:37:52Z","updated_at":"2015-06-03T19:36:16Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-03-17T21:21:13Z","updated_at":"2015-06-03T19:36:16Z","closed_at":null,"body":"Hi Rubat, William, etc. :heart:\r\n\r\nI found out that in Garry's Mod 15, **Entity:SetNWEntity()** causes **Entity:SetNWBool()** to fail.\r\nMy bug has been tested on the *2015.03.16* dev version.\r\n\r\nHere is a Lua code example, I invite you to autorun it.\r\n```lua\r\nlocal Entity = FindMetaTable( \"Entity\" )\r\nlocal old_SetKeyValue = Entity.SetKeyValue\r\nfunction Entity:SetKeyValue( key, value, ... )\r\n\tself:SetNWEntity( 'MyDebugVehicleVehicle', self ) -- can be any entity\r\n\tself:SetNWBool( 'MyDebugVehicleScript', true )\r\n\treturn old_SetKeyValue( self, key, value, ... )\r\nend\r\n```\r\n\r\nNow spawn a Jeep or any `prop_vehicle_jeep*` vehicle.\r\nRun this in your console:\r\n```lua\r\nlua_run print(ents.FindByClass('prop_vehicle_jeep*')[1]:GetNWBool('MyDebugVehicleScript')); lua_run_cl print(ents.FindByClass('prop_vehicle_jeep*')[1]:GetNWBool('MyDebugVehicleScript'))\r\n```\r\n\r\nRemove your first vehicle in order to have the index `[1]` on your new vehicle.\r\nNow spawn again the same vehicle (or another one?).\r\nRun the same command in your console.\r\n**Entity:GetNWBool()** does not work anymore because of **Entity:SetNWBool()**.\r\n\r\nP.S.: Well Rubat, in the *2015.03.16* dev version **DLabel:SetFGColor()** does not work anymore. I count on you to find out what is wrong.\r\n\r\nP.S.: My bus completely failed with GMod 15 updates. :sob:"},"comment":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/comments/108590790","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/1900#issuecomment-108590790","issue_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/1900","id":108590790,"user":{"login":"EstevanTH","id":5159778,"avatar_url":"https://avatars.githubusercontent.com/u/5159778?v=3","gravatar_id":"","url":"https://api.github.com/users/EstevanTH","html_url":"https://github.com/EstevanTH","followers_url":"https://api.github.com/users/EstevanTH/followers","following_url":"https://api.github.com/users/EstevanTH/following{/other_user}","gists_url":"https://api.github.com/users/EstevanTH/gists{/gist_id}","starred_url":"https://api.github.com/users/EstevanTH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EstevanTH/subscriptions","organizations_url":"https://api.github.com/users/EstevanTH/orgs","repos_url":"https://api.github.com/users/EstevanTH/repos","events_url":"https://api.github.com/users/EstevanTH/events{/privacy}","received_events_url":"https://api.github.com/users/EstevanTH/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T19:36:16Z","updated_at":"2015-06-03T19:36:16Z","body":"Hi everyone.\r\nI have exactly the same problem. I have not tried debugging again, but NWVars fail with my bus exactly the same way.\r\nRubat, have you tested [my bus](http://steamcommunity.com/sharedfiles/filedetails/?id=385180265) with the new NWVars as an example?"}}