public Weapon(Ped owner, WeaponHash hash) { Owner = owner; Hash = hash; }
public void SeekCoverFrom(Ped target, int duration) { Function.Call(Hash.TASK_SEEK_COVER_FROM_PED, Ped.Handle, target.Handle, duration, false, false, false); }
public void Rob(Ped target, int duration, int flag = 18) { Function.Call((Hash)0x7BB967F85D8CCBDB, Ped.Handle, target.Handle, flag, duration); }
public void Combat(Ped target) { Function.Call(Hash.TASK_COMBAT_PED, Ped.Handle, target.Handle, 0, 0); }
public void ReviveTarget(Ped target) { Function.Call((Hash)0x356088527D9EBAAD, Ped.Handle, target.Handle, -1516555556); }
public void HuntAnimal(Ped target) { Function.Call((Hash)0x4B39D8F9D0FE7749, target.Handle, Ped.Handle, 1); }
public void HandsUp(int duration, Ped facingPed = null) { Function.Call(Hash.TASK_HANDS_UP, Ped.Handle, duration, facingPed == null ? 0 : facingPed.Handle, -1, false); }
public void LeadHorse(Ped horse) { Function.Call((Hash)0x9A7A4A54596FE09D, Ped.Handle, horse.Handle); }
public void HitchAnimal(Ped animal, int flag = 0) { Function.Call((Hash)0x9030AD4B6207BFE8, Ped.Handle, animal.Handle, flag); }
internal Tasks(Ped ped) { Ped = ped; }
public void DismountAnimal(Ped animal) { Function.Call((Hash)0x48E92D3DDE23C23A, Ped.Handle, animal.Handle, 0, 0, 0, 0); }
public void MountAnimal(Ped animal, int timeout = -1) { Function.Call((Hash)0x92DB0739813C5186, Ped.Handle, animal.Handle, timeout, -1, 2f, 1, 0, 0); }