summaryrefslogtreecommitdiff
path: root/scripts/slipro_gus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/slipro_gus.lua')
-rw-r--r--[-rwxr-xr-x]scripts/slipro_gus.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/slipro_gus.lua b/scripts/slipro_gus.lua
index cd281d6..fa6f1f7 100755..100644
--- a/scripts/slipro_gus.lua
+++ b/scripts/slipro_gus.lua
@@ -50,6 +50,7 @@ function global_custom_enterSessionEvent(devType)
--print (string.format("session: %s",GetContextInfo("session")))
print ()
if GetContextInfo("ospcustom") then print ("has ospcustom") end
+
print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod")))
print (string.format("ospmethod : %s",GetContextInfo("ospmethod")))
print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod")))
@@ -57,7 +58,7 @@ function global_custom_enterSessionEvent(devType)
end
function global_custom_exitSessionEvent(devType)
- -- type your custom script on session ending, here
+ -- type your custom script on session ending, here
if GetContextInfo("ospcustom") then print ("has ospcustom") end
print ()
print (string.format("shiftlightsmethod: %s",GetContextInfo("shiftlightsmethod")))
@@ -65,7 +66,13 @@ function global_custom_exitSessionEvent(devType)
print (string.format("speedlimitemethod: %s",GetContextInfo("speedlimitermethod")))
print ( "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^")
print ()
- return 2
+
+ --my_setups=io.open("gus_cars.cfg", "a")
+ --my_setups:write(GetContextInfo("carname"), " shiftligts ", GetContextInfo("shiftlightsmethod"), "\n")
+ --my_setups:write(GetContextInfo("carname"), " speedlimiter ", GetContextInfo("speedlimitermethod"), "\n")
+ --my_setups:close()
+
+ return 2
end