Lua: Add MP.CreateTimedEvent as CreateThread replacement

This commit is contained in:
Lion Kortlepel
2021-09-20 12:43:00 +03:00
parent a97791d4ee
commit 4bf89706b4
3 changed files with 60 additions and 10 deletions

View File

@@ -21,6 +21,7 @@
- ADDED `MP.HttpsPOST(host,port,target,body,content_type) -> status,body`: Does a synchronous HTTPS POST request
- ADDED `MP.GetStateMemoryUsage() -> number`: Current memory usage of the current state in bytes
- ADDED `MP.GetLuaMemoryUsage() -> number`: Current memory usage of all states combined, in bytes
- ADDED `MP.CreateTimedEvent(event,interval_ms)`: Replacement for `CreateThread` - calls the event in the given interval
# v2.3.3