How to check the VDM's killers and victim?

I’ve tried GetPedCauseOfDeath and GetPedSourceOfDeath, but neither seem to recognize properly if I’ve been VDM’d to death by another player, the only problem in now is that I need to get the Killer, but I’ve been trying all night to get it and it’s all failed, and I’m wondering if anyone can offer some help, I’m using the framework qbx or qb. Again, if someone could offer some help here I would be very grateful!

onPlayerKilled event is your answer, hook it and parse the data appropriately for your purpose

Thx mate I’ll try it out