Are you sure ox_target was start in server.cfg before the script?