Skip to content

Commit 6293874

Browse files
committed
Update v2.5
1 parent bd8b1ac commit 6293874

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ The engine keeps running if you leave the vehicle without turning the engine off
77

88
If you set Config.VehicleKeyChain to true then only the Owner of the Vehicle or someone with a Key can start the Engine!
99

10-
1110
## Config
1211
```
1312
Config = {}
1413
1514
-- Change 'false' to 'true' to toggle the engine automatically on when entering a vehicle
1615
Config.OnAtEnter = false
1716
18-
-- Change 'false' to 'true' to use a key instead of the command
1917
Config.UseKey = true
2018
Config.ToggleKey = 244 -- M (https://docs.fivem.net/docs/game-references/controls/)
21-
Config.Commad = 'engine' -- If Config.UseKey = false then you can use the command instead
19+
Config.UseCommand = true
20+
Config.Commad = 'engine' -- If Config.UseKey = false then you can use the command instead
2221
2322
-- If both false then Default ESX Notification is active!
2423
Config.Notifications = false -- https://forum.cfx.re/t/release-standalone-notification-script/1464244

config.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Config = {}
33
-- Change 'false' to 'true' to toggle the engine automatically on when entering a vehicle
44
Config.OnAtEnter = false
55

6-
-- Change 'false' to 'true' to use a key instead of the command
76
Config.UseKey = true
87
Config.ToggleKey = 244 -- M (https://docs.fivem.net/docs/game-references/controls/)
9-
Config.Commad = 'engine' -- If Config.UseKey = false then you can use the command instead
8+
Config.UseCommand = true
9+
Config.Commad = 'engine' -- If Config.UseKey = false then you can use the command instead
1010

1111
-- If both false then Default ESX Notification is active!
1212
Config.Notifications = false -- https://forum.cfx.re/t/release-standalone-notification-script/1464244

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 '2.4'
6+
version '2.5'
77

88
client_scripts {
99
'config.lua',

server/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if not Config.UseKey then
1+
if Config.UseCommand then
22
RegisterCommand(Config.Commad, function(Source, Arguments, RawCommand)
33
if #Arguments == 0 then
44
TriggerClientEvent('EngineToggle:Engine', Source)

0 commit comments

Comments
 (0)