Skip to content

Commit 13118b5

Browse files
committed
Update v4.3.2
1 parent e45dba5 commit 13118b5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

client/hotwire.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ toggleLockpick = function()
4444
TriggerServerEvent('msk_enginetoggle:liveCoords', owner, VehToNet(vehicle), GetEntityCoords(vehicle))
4545
end
4646

47-
MSK.LoadAnimDict(animation.dict)
47+
MSK.Request.AnimDict(animation.dict)
4848
TaskPlayAnim(playerPed, animation.dict, animation.anim, 8.0, 1.0, -1, 49, 0, false, false, false)
4949
FreezeEntityPosition(playerPed, true)
5050

@@ -119,7 +119,7 @@ toggleLockpick = function()
119119
local anim = Config.Animation.searchKey.anim
120120
local time = Config.Animation.searchKey.time * 1000
121121

122-
MSK.LoadAnimDict(dict)
122+
MSK.Request.AnimDict(dict)
123123
TaskPlayAnim(playerPed, dict, anim, 8.0, 1.0, -1, 49, 0, false, false, false)
124124
if Config.Animation.searchKey.enableProgressbar then
125125
Config.progressBar(time, Translation[Config.Locale]['search_key'])
@@ -128,7 +128,7 @@ toggleLockpick = function()
128128

129129
if math.random(100) <= Config.LockpickSettings.searchKey then
130130
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))
132132
end
133133
needToHotwire = false
134134
Config.Notification(nil, Translation[Config.Locale]['hotwiring_foundkey'], 'success')
@@ -145,7 +145,7 @@ toggleLockpick = function()
145145
local anim = Config.Animation.hotwire.anim
146146
local action = Config.Animation.hotwire.action
147147
local time = Config.Animation.hotwire.time * 1000
148-
MSK.LoadAnimDict(dict)
148+
MSK.Request.AnimDict(dict)
149149
TaskPlayAnim(playerPed, dict, anim, 8.0, 1.0, -1, 49, 0, false, false, false)
150150

151151
local success = false

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ games { 'gta5' }
44
author 'Musiker15 - MSK Scripts'
55
name 'msk_enginetoggle'
66
description 'EngineToggle for Vehicles'
7-
version '4.3.1'
7+
version '4.3.2'
88

99
lua54 'yes'
1010

server/main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ if Config.AdminCommand.enable then
7878
end)
7979
end
8080

81-
RegisterNetEvent('msk_enginetoggle:addTempKey', function(plate)
81+
RegisterNetEvent('msk_enginetoggle:addTempKey', function(plate, model)
8282
if not Config.VehicleKeys.enable then return end
8383
local playerId = source
8484
plate = tostring(plate)
8585

8686
if Config.VehicleKeys.script == 'msk_vehiclekeys' then
87-
exports.msk_vehiclekeys:AddTempKey({source = playerId}, {plate = plate})
87+
exports.msk_vehiclekeys:AddTempKey({source = playerId}, {plate = plate, model = model})
8888
elseif Config.VehicleKeys.script == 'VehicleKeyChain' then
8989
exports["VehicleKeyChain"]:AddTempKey(playerId, plate)
9090
elseif Config.VehicleKeys.script == 'vehicles_keys' then

0 commit comments

Comments
 (0)