How to set Mission Entity Ped Relation to Player?

Hi Everyone!

I’m currently trying to make a script which enables you to sit in a npc driven car and do whatever you want. But I’m facing a problem:

SetEntityAsMissionEntity(ped, true, true)

This makes it possible for the player to stay in the car the NPC is driving. If this is not set, the player will be kicked out after a few seconds. I could do a dirty workaround by setting the player back into the vehicle, but that affects my firstperson script and is not so nice (tryed it already).

My Problem is that I can’t set the relationship from the ped to player to “0” when the ped is set as mission entity. It always stays 255, which makes the NPC leave the car when the player shoots.

Does anybody know how i can solve this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.