@@ -95,22 +95,22 @@ AddEventHandler('msk_enginetoggle:Engine', function()
95
95
if (GetPedInVehicleSeat (veh , - 1 ) == PlayerPedId ()) then
96
96
vehicles [StateIndex ][2 ] = not GetIsVehicleEngineRunning (veh )
97
97
if vehicles [StateIndex ][2 ] then
98
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' engine_start' ])
98
+ Config .Notification (nil , Translation [Config .Locale ][' engine_start' ])
99
99
else
100
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' engine_stop' ])
100
+ Config .Notification (nil , Translation [Config .Locale ][' engine_stop' ])
101
101
end
102
102
end
103
103
elseif IsPedInAnyVehicle (PlayerPedId (), false ) and (not isVehicleOrKeyOwner or not isVehicle or not isPlate ) then
104
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' key_nokey' ])
104
+ Config .Notification (nil , Translation [Config .Locale ][' key_nokey' ])
105
105
end
106
106
else
107
107
if IsPedInAnyVehicle (PlayerPedId (), false ) then
108
108
if (GetPedInVehicleSeat (veh , - 1 ) == PlayerPedId ()) then
109
109
vehicles [StateIndex ][2 ] = not GetIsVehicleEngineRunning (veh )
110
110
if vehicles [StateIndex ][2 ] then
111
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' engine_start' ])
111
+ Config .Notification (nil , Translation [Config .Locale ][' engine_start' ])
112
112
else
113
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' engine_stop' ])
113
+ Config .Notification (nil , Translation [Config .Locale ][' engine_stop' ])
114
114
end
115
115
end
116
116
end
@@ -132,7 +132,7 @@ if Config.OnAtEnter then
132
132
if vehicle [1 ] == GetVehiclePedIsTryingToEnter (PlayerPedId ()) and not vehicle [2 ] then
133
133
Wait (0 )
134
134
vehicle [2 ] = true
135
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' engine_onatenter' ])
135
+ Config .Notification (nil , Translation [Config .Locale ][' engine_onatenter' ])
136
136
end
137
137
end
138
138
end
@@ -187,12 +187,12 @@ AddEventHandler('msk_enginetoggle:hotwire', function()
187
187
SetVehicleDoorsLockedForAllPlayers (vehicle , false )
188
188
FreezeEntityPosition (playerPed , false )
189
189
ClearPedTasksImmediately (playerPed )
190
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' vehicle_unlocked' ])
190
+ Config .Notification (nil , Translation [Config .Locale ][' vehicle_unlocked' ])
191
191
else
192
192
TriggerServerEvent (' msk_enginetoggle:delhotwire' )
193
193
FreezeEntityPosition (playerPed , false )
194
194
ClearPedTasksImmediately (playerPed )
195
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' hotwiring_failed' ])
195
+ Config .Notification (nil , Translation [Config .Locale ][' hotwiring_failed' ])
196
196
return
197
197
end
198
198
@@ -219,7 +219,7 @@ AddEventHandler('msk_enginetoggle:hotwire', function()
219
219
if chance <= Config .Probability .searchKey then
220
220
TriggerServerEvent (' msk_enginetoggle:addcarkeys' , plate )
221
221
else
222
- Config .Notification (nil , ' client ' , nil , Translation [Config .Locale ][' hotwiring_notfoundkey' ])
222
+ Config .Notification (nil , Translation [Config .Locale ][' hotwiring_notfoundkey' ])
223
223
end
224
224
else
225
225
TriggerServerEvent (' msk_enginetoggle:addcarkeys' , plate )
0 commit comments