Translate JS code to LUA


Hey guys, i have little problem with translate JS code to LUA, can someone help me ?
Here is original code in JS:
Here is my try to translate to LUA:
Its not working dunno why :confused:


I mean I don’t have time to go line by line translating. But I would suggest you go function by function testing each, one by one. It’ll probably work out well for. I’m not aware of a program that does this. Maybe look around for that.

If you have any error messages do show us though.


:face_vomiting: :face_vomiting:


I tried but its still not working. Any ideas ?

ESX                           = nil
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

Why… Why doe?!


Gonna need this later in this plugin.