Description
Based from Weapon Ammo Counts (14) by Apache uwu lua, i think that after you use parse then it directly trigger log hook before execute the next code. Doing a research about this and i'm right and this is created!
LogCapture(this lua) allows you to get log output that logged from parse command
Features
Small(less than 600 byte)
No timer used
Easy to use
LF delimiter
Only use 1 variables
How to Install
Do it like another normal scripts
Reserved Global Variables
LogCapture
Information
30 Lines
546 Bytes
Hooks: 1, log
Function
LogCapture(command[,keep_log])
- Get log output from parse command
Arguments:
command - command to executed(string)
keep_log - keep log output written into file?(anything that equal to true or false)
Returns: Log Output where each line is separated by LF character(string)
Example
1
2
3
4
5
6
2
3
4
5
6
-- Get list of items local lit=LogCapture("items") -- Try to spawn an object but allow information to written to log local more_info=LogCapture("spawnobject 1 -1 -1 0 0 0 0",true) print(more_info)	-- ERROR: spawnobject - position is out of map bounds!
Notes
Nah, just like my earlier uploads. Feedbacks, suggestions, bug reports on comments
Rules
You can use it for your lua & server
You can edit it
Share to others
Say MikuAuahDark made it
Reupload with me on credits
Say you made it
Redistribute your edited version
Re-upload without me on credits
Approved by Seekay
Download
574 b, 440 Downloads