Assuming your user is logged in with an X session, and is the first session, it will get the display number 0, otherwise try to find out the display number the user is running. Try to put this in the user's crontab
*/5 * * * * DISPLAY=:0 /usr/bin/scrot