Don't understand GetPedSourceOfDamage

Hey

trying to use GetPedSourceOfDamage

I have a thing where it checks if the player is damaged HasEntityBeenDamagedByAnyPed
which works when i test it with a simple print.

But the problem is that I want to trigger a server event after the hit check and do the function GetPedSourceOfDamage.

What do I need to input into the function to get the player id of the one who hit the player?

Thanks in advanced

1 Like

maybe you have onesync off

i mean if i remember for GetPedSourceOfDamage you need onesync

Yes I saw
But you need to input a ped but does that mean a source or get the ped from client side?

Just looking to get that players id (the one who damaged)

On the server you can do GetPlayerPed(source)

dope, got it to work with some other code
Thanks anyways!!