key swep problems

Hello, i currently have a key swep to doors but im trying to add so you can lock/unlock vehicles.

My problem is that what ive tryed doesnt work the doors works like they should but when im trying to
lock/unlock a vehicle nothing happends…
think it might be something with “SetNextPrimaryFire” but i dont know this is what ive got
and there is no errors and it just doesnt do anything.

When i spawn the car:


Nvm.

in the keys swep with only doors:


Nvm.

currently code. Then i tryed adding keys to vehicle:


Nvm.

Problem: Found a fix.
Errors: none.

EDIT: Found the problem myself.