I'm border workers employed in Gibraltar and resides in Spain do i have the right to unemployment benefit after Brexit?

Yes, when Spain their country of residence for their work in Gibraltar, you can access provision in spain for insurance periods accredited in Gibraltar before and after Brexit, without any need for contributions in Last place in spain.
Contributions may be certified in Gibraltar providing U 1 .