@@ -44,7 +44,7 @@ toggleLockpick = function()
44
44
TriggerServerEvent (' msk_enginetoggle:liveCoords' , owner , VehToNet (vehicle ), GetEntityCoords (vehicle ))
45
45
end
46
46
47
- MSK .LoadAnimDict (animation .dict )
47
+ MSK .Request . AnimDict (animation .dict )
48
48
TaskPlayAnim (playerPed , animation .dict , animation .anim , 8.0 , 1.0 , - 1 , 49 , 0 , false , false , false )
49
49
FreezeEntityPosition (playerPed , true )
50
50
@@ -119,7 +119,7 @@ toggleLockpick = function()
119
119
local anim = Config .Animation .searchKey .anim
120
120
local time = Config .Animation .searchKey .time * 1000
121
121
122
- MSK .LoadAnimDict (dict )
122
+ MSK .Request . AnimDict (dict )
123
123
TaskPlayAnim (playerPed , dict , anim , 8.0 , 1.0 , - 1 , 49 , 0 , false , false , false )
124
124
if Config .Animation .searchKey .enableProgressbar then
125
125
Config .progressBar (time , Translation [Config .Locale ][' search_key' ])
@@ -128,7 +128,7 @@ toggleLockpick = function()
128
128
129
129
if math.random (100 ) <= Config .LockpickSettings .searchKey then
130
130
if Config .VehicleKeys .enable and GetResourceState (Config .VehicleKeys .script ) == " started" then
131
- TriggerServerEvent (' msk_enginetoggle:addTempKey' , plate )
131
+ TriggerServerEvent (' msk_enginetoggle:addTempKey' , plate , GetEntityModel ( vehicle ) )
132
132
end
133
133
needToHotwire = false
134
134
Config .Notification (nil , Translation [Config .Locale ][' hotwiring_foundkey' ], ' success' )
@@ -145,7 +145,7 @@ toggleLockpick = function()
145
145
local anim = Config .Animation .hotwire .anim
146
146
local action = Config .Animation .hotwire .action
147
147
local time = Config .Animation .hotwire .time * 1000
148
- MSK .LoadAnimDict (dict )
148
+ MSK .Request . AnimDict (dict )
149
149
TaskPlayAnim (playerPed , dict , anim , 8.0 , 1.0 , - 1 , 49 , 0 , false , false , false )
150
150
151
151
local success = false
0 commit comments