The Chief of Police and all police officers shall possess the powers and be subject to the liabilities possessed and conferred by law upon sheriffs in executing the orders of the Trustees or enforcing the code of ordinances of the Town of Granite, Oklahoma.