[QUESTION] Ped attacks player

Hello guys. Not to sure If this Is the right place to post but I appreciate any help I can get.
I want to create ped. This created ped, can shoot me? I want to create a robbery.


Ped CREATE_PED(int pedType, Hash modelHash, float x, float y, float z, float heading, BOOL isNetwork, BOOL p7);

void TASK_COMBAT_PED(Ped ped, Ped targetPed, int p2, int p3);

thats about what u need