The first 3 parameters of CLEAR_AREA_OF_PEDS and CLEAR_AREA_OF_VEHICLES are coordinates. You had the coordinates set to "0, 0, 0", so the only time the code would work is when you are nearby those coordinates.
To fix this, set the coordinates to your player's coordinates, like this.