Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
feat(client): force player to face carcass
Browse files Browse the repository at this point in the history
  • Loading branch information
N-fire committed Apr 15, 2022
1 parent 8614ac8 commit eccb2e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ exports.qtarget:AddTargetModel(animals, {
action = function (entity)
TriggerEvent('ox_inventory:disarm')
local retval, bone = GetPedLastDamageBone(entity)
TaskTurnPedToFaceEntity(PlayerPedId(), entity, -1)
Wait(500)
exports.ox_inventory:Progress({
duration = 3000,
label = _U('pickup_carcass'),
Expand Down

0 comments on commit eccb2e8

Please sign in to comment.