From c5d6bed795dd9823130967082e247710a2a3c3a9 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 29 Oct 2017 19:55:47 +0000 Subject: [PATCH] added to emit --- locale/ExpGaming-Core/ExpGaming - Server Interface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua index 2c4b9da5..0d795197 100644 --- a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua +++ b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua @@ -42,7 +42,7 @@ local temp_var_time = 1000/commands_per_iteration*ticks_per_iteration --temp var function server.emit(code, callback) if type(callback) == 'function' then local uuid = server.add_callback(callback) - game.write_file('socket.data','{ "type": "JS", "id": "' .. uuid .. '", "code": "' .. code .. '" }\n', true, 0) + json_log({type='JS',id=uuid,code=code}) end end --adds a call back that can be ran with a command