Currently if you see a cop approaching you can use /dropitem and then attack the cop. But I guess changing it so the item drops automatically when you try to aim makes it a bit faster.
but you still able to rob the houses with out getting wanted?, also if you holding the object how you gonna shoot?