Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript"
- script-author="MrARM"
- script-desc="Now skiddie friendly!!! 8)">
- window.addEventListener('load', function () {
- if (lua && lua.Run)
- {
- /**
- * Opens a file into the game Lua state.
- * @params {String} fileName (...) Files to server into being executed.
- */
- lua.Run("concommand.Add('injector', function(ply,cmd,args) \
- for i,v in pairs(args) do \
- local f=file.Open('lua/' .. v, 'r', 'GAME') \
- if (!f) then return print('Error opening ' .. v) end\
- local fs=f:Read(f:Size()) \
- f:Close() \
- RunString(fs) \
- end \
- end)");
- console.log('Started the file-open service, use injector [file1], ... to use.');
- }
- else
- console.warn('Lua utilities not found.')
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement