He's using the OLD version of Loki lost keys, as evidenced by the use of extended event handlers. The newer version uses CBA, thus is a cleaner solution when working with mods.
That line dosen't exist in the newer one, so my method wouldn't work on this version. (Well actually, just call the script in that snippet)
Do what MrMedic said, that should work. (So long as you know whats setting that bool to true)
As for the pbo not running... You're supposed to extract the pbo then repack it, not hex edit it! *facepalm* (The tools come with the SDK me thinks, and there are some free tools to do it too.)