This line functions fine when executed from vehicle lua on the console:
But if I insert it into a "command" in a scenario JSON the escaped double quotes are replaced with single quotes, as evidenced by this error on the console:
quote replacement json -> lua (escaped double quotes turn into naked single quotes)
Code:
obj:queueGameEngineLua('print(scenetree.findObject(\"scenario_player0\"):getID())')
Code:
67.20530|E|libbeamng.lua.V|*** FATAL LUA ERROR: [string "string"]:1: ')' expected near 'scenario_player0' 67.20532|E|libbeamng.lua.V|*** while executing this...