Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ped ped = Game.Player.Character; if (Function.Call<bool>(Hash.IS_PED_SHOOTING, ped.Handle)) { OutputArgument arg = new OutputArgument(); Function.Call(Hash.GET_PED_LAST_WEAPON_IMPACT_COORD, ped.Handle, arg); GTA.Math.Vector3 result = arg.GetResult<GTA.Math.Vector3>(); if (result != GTA.Math.Vector3.Zero) { Model model = new Model(0x113FD533); if (!model.IsLoaded) model.Request(1000); int hash = Function.Call<int>(Hash.GET_HASH_KEY, "PICKUP_MONEY_CASE"); Function.Call(Hash.CREATE_AMBIENT_PICKUP, hash, result.X, result.Y, result.Z, 0, 2000, model.Hash, 0, 1); } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement