Skip to content

Commit 27b5e08

Browse files
committed
Update v3.7.2
* Removed NeonToggle
1 parent 2976894 commit 27b5e08

File tree

4 files changed

+7
-46
lines changed

4 files changed

+7
-46
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.1
1+
3.7.2

client.lua

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -240,40 +240,6 @@ AddEventHandler('msk_enginetoggle:hotwire', function()
240240
end
241241
end)
242242

243-
if Config.NeonToggle then
244-
local neonoff = false
245-
246-
CreateThread(function()
247-
while true do
248-
local sleep = 200
249-
local playerPed = PlayerPedId()
250-
local vehicle = GetVehiclePedIsIn(playerPed, false)
251-
local driver = GetPedInVehicleSeat(vehicle, -1)
252-
local neonon = IsVehicleNeonLightEnabled(vehicle, 1)
253-
254-
if IsPedInVehicle(playerPed, vehicle, true) and driver == playerPed then
255-
if IsControlPressed(0, Config.NeonToggleHolding) and IsControlJustPressed(0, Config.NeonToggleJustPressed) then
256-
if neonon then
257-
if neonoff == false then
258-
neonoff = true
259-
DisableVehicleNeonLights(vehicle, true)
260-
Config.Notification(nil, 'client', nil, Translation[Config.Locale]['neonlights_on'])
261-
elseif neonoff == true then
262-
neonoff = false
263-
DisableVehicleNeonLights(vehicle, false)
264-
Config.Notification(nil, 'client', nil, Translation[Config.Locale]['neonlights_off'])
265-
end
266-
else
267-
Config.Notification(nil, 'client', nil, Translation[Config.Locale]['neonlights_not_installed'])
268-
end
269-
end
270-
end
271-
272-
Wait(sleep)
273-
end
274-
end)
275-
end
276-
277243
if Config.SaveSteeringAngle then
278244
local pressed = 1 * 1000
279245

config.lua

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@ Config.UseCommand = false -- Set true if you want to use a Command
1818
Config.VehicleKeyChain = false -- https://kiminazes-script-gems.tebex.io/package/4524211
1919
----------------------------------------------------------------
2020
Config.SaveSteeringAngle = true
21-
Config.NeonToggle = false
22-
2321
Config.SaveAngleOnExit = 75 -- default: F - 75 (Exit Vehicle)
2422
Config.PerformanceVersion = false -- true = no sync but more performance
2523
Config.RefreshTime = 5 -- in seconds // Refreshing SteeringAngle all 5 seconds
26-
27-
Config.NeonToggleHolding = 132 -- default: STRG - 132
28-
Config.NeonToggleJustPressed = 249 -- default: N - 249
2924
----------------------------------------------------------------
3025
-- With this feature you can set vehicles and plates for which you don't need a key to start the engine
3126
-- either exact plates or just a string that should be in the vehicles plate e.g. "ESX" will ignore te plate "ESX1234" too
@@ -42,10 +37,10 @@ Config.Whitelist = {
4237
----------------------------------------------------------------
4338
-- !!! This function is clientside AND serverside !!!
4439
-- Look for type == 'client' and type == 'server'
45-
Config.Notification = function(src, type, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
46-
if type == 'client' then -- clientside
40+
Config.Notification = function(src, action, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
41+
if action == 'client' then -- clientside
4742
ESX.ShowNotification(message) -- replace this with your Notify // example: exports['okokNotify']:Alert('Crafting', message, 5000, 'info')
48-
elseif type == 'server' then -- serverside
43+
elseif action == 'server' then -- serverside
4944
xPlayer.showNotification(message) -- replace this with your Notify // example: TriggerClientEvent('okokNotify:Alert', src, 'Crafting', message, 5000, 'info')
5045
end
5146
end

fxmanifest.lua

Lines changed: 3 additions & 3 deletions
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 '3.7.1'
7+
version '3.7.2'
88

99
lua54 'yes'
1010

@@ -14,9 +14,9 @@ shared_script {
1414
}
1515

1616
client_scripts {
17-
'client.lua',
17+
'client.lua'
1818
}
1919

2020
server_scripts {
21-
'server.lua',
21+
'server.lua'
2222
}

0 commit comments

Comments
 (0)