Skip to content

Commit

Permalink
Merge pull request #74 from Mathu-lmn/master
Browse files Browse the repository at this point in the history
don't try to replay if the player isn't the cause of events
  • Loading branch information
alberttheprince authored Dec 12, 2024
2 parents f082fdf + 75c8f6a commit 4a934e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/Emote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,8 @@ end)

-- Door stuff
local openingDoor = false
AddEventHandler('CEventOpenDoor', function(entities, eventEntity, args)
AddEventHandler('CEventOpenDoor', function(unk1)
if unk1[1] ~= PlayerPedId() then return end
if ShowPed then
return
end
Expand Down Expand Up @@ -1097,7 +1098,8 @@ end)
local isBumpingPed = false
local timeout = 500

AddEventHandler("CEventPlayerCollisionWithPed", function()
AddEventHandler("CEventPlayerCollisionWithPed", function(unk1)
if unk1[1] ~= PlayerPedId() then return end
if not IsInAnimation then
return
end
Expand Down

0 comments on commit 4a934e4

Please sign in to comment.