{"action":"created","issue":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/2819","repository_url":"https://api.github.com/repos/FPtje/DarkRP","labels_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2819/labels{/name}","comments_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2819/comments","events_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2819/events","html_url":"https://github.com/FPtje/DarkRP/issues/2819","id":383983556,"node_id":"MDU6SXNzdWUzODM5ODM1NTY=","number":2819,"title":"Player:GetEyeTrace()","user":{"login":"Etos7","id":31066103,"node_id":"MDQ6VXNlcjMxMDY2MTAz","avatar_url":"https://avatars1.githubusercontent.com/u/31066103?v=4","gravatar_id":"","url":"https://api.github.com/users/Etos7","html_url":"https://github.com/Etos7","followers_url":"https://api.github.com/users/Etos7/followers","following_url":"https://api.github.com/users/Etos7/following{/other_user}","gists_url":"https://api.github.com/users/Etos7/gists{/gist_id}","starred_url":"https://api.github.com/users/Etos7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etos7/subscriptions","organizations_url":"https://api.github.com/users/Etos7/orgs","repos_url":"https://api.github.com/users/Etos7/repos","events_url":"https://api.github.com/users/Etos7/events{/privacy}","received_events_url":"https://api.github.com/users/Etos7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-24T11:57:14Z","updated_at":"2018-11-24T21:06:08Z","closed_at":"2018-11-24T21:06:08Z","author_association":"NONE","body":"[//]: # (DO NOT REMOVE THIS TEMPLATE.)\r\n[//]: # (GITHUB ISSUES ARE **NOT** FOR HELP)\r\n[//]: # (GO TO THE FORUMS INSTEAD: https://forum.darkrp.com/ )\r\n\r\n### Description of the bug\r\n[//]: #Player:GetEyeTrace().The entity does not work for money and tip jar ent. It prints out world/map ent, but not money ent. Tested on vanilla DarkRP singleplayer and multiplayer.  Also, ent owner is from prop protection is missing when looking on tip jar or money ent.\r\n\r\n**Screenshot with ammo box working OK:**\r\nhttps://prnt.sc/lmdo2k\r\n`print(Player:GetEyeTrace().Entity) -> Entity [123][spawned_ammo]`\r\n\r\n**Screenshot with jar working NOT OK:** \r\nhttps://prnt.sc/lmdq70\r\n`print(Player:GetEyeTrace().Entity -> Entity [0][worldspawn]`\r\n\r\n\r\n\r\n### How to make the bug happen\r\n[//]: # print(Player:GetEyeTrace().Entity )\r\n[//]: # Unknown\r\n\r\n\r\n### Lua errors\r\n[//]: # None\r\n\r\n\r\n### Why the developer of DarkRP is responsible for this issue\r\n[//]: # I'm using vanilla DarkRP, the issue is tested on my PC and my friends PC, both test on singleplayer and multiplayer. GetEyeTrace is standard GMod function and in my opinion, it should work with DarkRP money. It was working a few months ago I used it to print hud when the player was looking at money,"},"comment":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/comments/441395752","html_url":"https://github.com/FPtje/DarkRP/issues/2819#issuecomment-441395752","issue_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2819","id":441395752,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM5NTc1Mg==","user":{"login":"FPtje","id":1202014,"node_id":"MDQ6VXNlcjEyMDIwMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1202014?v=4","gravatar_id":"","url":"https://api.github.com/users/FPtje","html_url":"https://github.com/FPtje","followers_url":"https://api.github.com/users/FPtje/followers","following_url":"https://api.github.com/users/FPtje/following{/other_user}","gists_url":"https://api.github.com/users/FPtje/gists{/gist_id}","starred_url":"https://api.github.com/users/FPtje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FPtje/subscriptions","organizations_url":"https://api.github.com/users/FPtje/orgs","repos_url":"https://api.github.com/users/FPtje/repos","events_url":"https://api.github.com/users/FPtje/events{/privacy}","received_events_url":"https://api.github.com/users/FPtje/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T21:06:08Z","updated_at":"2018-11-24T21:06:08Z","author_association":"OWNER","body":"Actually, it's the combination `self:SetModelScale(1.5, 0)` and `self:Activate()`. I've tried several things. In the end I managed to have both a scaled model serverside **and** `:GetEyeTrace().Entity` working clientside, but with this caveat:\r\n\r\n![gmod_2018-11-24_22-03-31](https://user-images.githubusercontent.com/1202014/48972929-f8ec4700-f034-11e8-95cd-1ac6c546f085.jpg)\r\n\r\nBasically the physgun beam going haywire. I think it may be a bug or some odd behaviour that just isn't documented on `SetModel`'s [wiki page](http://wiki.garrysmod.com/page/Entity/SetModelScale). I don't think there's anything I can do about it. Sorry."}}
{"actor":{"display_login":"FPtje"}}