Skip to content

Commit ff4b614

Browse files
committed
Update v3.1.4
* Fixed an issue were the vehicle is nil after lockpicking
1 parent 10155df commit ff4b614

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.3
1+
3.1.4

client.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ AddEventHandler('EngineToggle:hotwire', function()
183183

184184
if not Config.Animation.InsideOutsideAnimation then
185185
TaskStartScenarioInPlace(playerPed, Config.Animation.InsideOutsideAnimation, 0, true)
186-
FreezeEntityPosition(PlayerPedId(), true)
186+
FreezeEntityPosition(playerPed, true)
187187
elseif Config.Animation.InsideOutsideAnimation then
188188
loadAnimDict(animation.dict)
189189
TaskPlayAnim(playerPed, animation.dict, animation.anim, 8.0, 1.0, -1, 49, 0, false, false, false)
@@ -234,6 +234,10 @@ AddEventHandler('EngineToggle:hotwire', function()
234234
TaskEnterVehicle(playerPed, vehicle, 10.0, -1, 1.0, 1, 0)
235235
Citizen.Wait(5000)
236236

237+
if (not DoesEntityExist(vehicle)) then
238+
return
239+
end
240+
237241
if Config.VehicleKeyChain then
238242
local vehicle2 = GetVehiclePedIsIn(playerPed, false)
239243
local plate = GetVehicleNumberPlateText(vehicle2)

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ games { 'gta5' }
33

44
author 'Musiker15'
55
description 'ESX Better Engine Toggle'
6-
version '3.1.3'
6+
version '3.1.4'
77

88
shared_script {
99
'@es_extended/locale.lua',

0 commit comments

Comments
 (0)