Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(gamestate/server): server-created vehicle 'status' field
Non-occupied vehicles seem to have this field be set to `2` initially,
which code originally set to `0` (which matches what happens when a
player is in the vehicle).

This might be a potential fix for https://forum.cfx.re/t/4947251.
  • Loading branch information
blattersturm committed Nov 16, 2022
1 parent 4f5d89c commit 073185d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -95,7 +95,7 @@ std::shared_ptr<sync::SyncTreeBase> MakeAutomobile(uint32_t model, float posX, f
cdn.m_popType = sync::POPTYPE_MISSION;
cdn.m_randomSeed = rand();
cdn.m_tyresDontBurst = false;
cdn.m_vehicleStatus = 0;
cdn.m_vehicleStatus = 2;
cdn.m_unk5 = false;
});

Expand Down Expand Up @@ -130,7 +130,7 @@ std::shared_ptr<sync::SyncTreeBase> MakeVehicle(uint32_t model, float posX, floa
cdn.m_popType = sync::POPTYPE_MISSION;
cdn.m_randomSeed = rand();
cdn.m_tyresDontBurst = false;
cdn.m_vehicleStatus = 0;
cdn.m_vehicleStatus = 2;
cdn.m_unk5 = false;
});

Expand Down

0 comments on commit 073185d

Please sign in to comment.