diff --git a/client/main.lua b/client/main.lua index c89fbd9..694f8fa 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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