Does anyone know the native for allowing a NPC to pull a player out of car

Does anyone know the native for allowing a NPC to pull a player out of car?

I have some custom spawned peds (they are zombies) but they cannot pull someone out of the car like a normal ped can. Does anyone know how I can turn this on for them so they can pull people out of their cars?

Right now they run to the car but they just stand there and cannot figure out how to pull me out of the car

1 Like

I think it has something to do with combat and setting up relationships. Otherwise they just stand there lol

Try experimenting with this native. Maybe change the timeout or cancel take when player is out of vehicle.

TaskEnterVehicle(ped, playerVehicle, -1, -1, 2.0, 8, 0);

I can give it a try, I thought this native was only for real players not npc

I used the SetRelationshipBetweenGroups in my scripts.
The NPCs will pull you out of the car and beat you up

Those nanoprobes scare the hell out of me.

– as for the relationships… hmm…

AddRelationshipGroup('ZOMBIE')
SetRelationshipBetweenGroups(0, GetHashKey('ZOMBIE'), GetHashKey('PLAYER'))
SetRelationshipBetweenGroups(5, GetHashKey('PLAYER'), GetHashKey('ZOMBIE'))

5 = hate

not sure what else to do