summaryrefslogtreecommitdiff
path: root/scripts/enter_exit_session.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/enter_exit_session.lua')
-rw-r--r--[-rwxr-xr-x]scripts/enter_exit_session.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/enter_exit_session.lua b/scripts/enter_exit_session.lua
index b9b761b..6d42ff2 100755..100644
--- a/scripts/enter_exit_session.lua
+++ b/scripts/enter_exit_session.lua
@@ -1,17 +1,17 @@
--- SLIMax Mgr Lua Script v3
+-- SLIMax Mgr Lua Script v3.1
-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved.
-- Event received when the car enter and exit the session.
-- param = device type (integer - see GetDeviceType() )
-- enter session
-function enterSessionEvent(devType)
+function enterSessionEvent(deviceType)
-- call custom script
- local result = custom_enterSessionEvent(devType)
+ local result = custom_enterSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
-- call global custom script
- result = global_custom_enterSessionEvent(devType)
+ result = global_custom_enterSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
@@ -21,14 +21,14 @@ end
-- param = device type (integer - see GetDeviceType() )
-- exit session
-function exitSessionEvent(devType)
+function exitSessionEvent(deviceType)
-- call custom script
- local result = custom_exitSessionEvent(devType)
+ local result = custom_exitSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
-- call global custom script
- result = global_custom_exitSessionEvent(devType)
+ result = global_custom_exitSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue