Skip to content

Commit

Permalink
Fix multitheftauto#501 Setting player model resets their current weap…
Browse files Browse the repository at this point in the history
…on slot (multitheftauto#3510)
  • Loading branch information
FileEX authored Jun 28, 2024
1 parent 4987433 commit f7ce562
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/mods/deathmatch/logic/CClientPed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5220,6 +5220,9 @@ void CClientPed::Respawn(CVector* pvecPosition, bool bRestoreState, bool bCamera

m_pPlayerPed->SetLanding(false);

// Set it to 0 (Fix #501)
SetCurrentWeaponSlot(eWeaponSlot::WEAPONSLOT_TYPE_UNARMED);

if (bRestoreState)
{
// Jax: restore all the things we saved
Expand Down

0 comments on commit f7ce562

Please sign in to comment.