{"action":"opened","issue":{"url":"https://api.github.com/repos/FPtje/DarkRP/issues/2091","labels_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2091/labels{/name}","comments_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2091/comments","events_url":"https://api.github.com/repos/FPtje/DarkRP/issues/2091/events","html_url":"https://github.com/FPtje/DarkRP/issues/2091","id":102580955,"number":2091,"title":"Hungermod Suggestion","user":{"login":"deinemudda32","id":6186298,"avatar_url":"https://avatars.githubusercontent.com/u/6186298?v=3","gravatar_id":"","url":"https://api.github.com/users/deinemudda32","html_url":"https://github.com/deinemudda32","followers_url":"https://api.github.com/users/deinemudda32/followers","following_url":"https://api.github.com/users/deinemudda32/following{/other_user}","gists_url":"https://api.github.com/users/deinemudda32/gists{/gist_id}","starred_url":"https://api.github.com/users/deinemudda32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deinemudda32/subscriptions","organizations_url":"https://api.github.com/users/deinemudda32/orgs","repos_url":"https://api.github.com/users/deinemudda32/repos","events_url":"https://api.github.com/users/deinemudda32/events{/privacy}","received_events_url":"https://api.github.com/users/deinemudda32/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-23T02:14:29Z","updated_at":"2015-08-23T02:14:29Z","closed_at":null,"body":"You can add food by default.\r\nBut it should be possible to run a specific function on eating food.\r\n\r\nlike this\r\nDarkRP.createFood(\"Orange\", {\r\n\tmodel = \"models/props/cs_italy/orange.mdl\",\r\n\tenergy = 15,\r\n\tprice = 45\r\n})\r\n\r\nto this\r\n\r\nDarkRP.createFood(\"Orange(+1HP)\", {\r\n\tmodel = \"models/props/cs_italy/orange.mdl\",\r\n\tenergy = 15,\r\n\tprice = 45,\r\n\tfunction(ply) ply:SetHealth(ply:Health() + 1)\r\n})"}}