Skip to content

Commit

Permalink
fix(client): use correct state bag key for test drives (#114)
Browse files Browse the repository at this point in the history
* fix test driver state bag key name

---------

Co-authored-by: Solareon <[email protected]>
  • Loading branch information
Swellington-Soares and solareon authored Oct 3, 2024
1 parent c68e988 commit 93bb8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ local function startTestDrive(vehModel)
end

lib.onCache('vehicle', function(value)
if value or not LocalPlayer.state.inTestDrive then return end
LocalPlayer.state:set('inTestDrive', nil, true)
if value or not LocalPlayer.state.isInTestDrive then return end
LocalPlayer.state:set('isInTestDrive', nil, true)
end)

---@param vehModel string
Expand Down

0 comments on commit 93bb8bf

Please sign in to comment.