mirror of
https://github.com/BeamMP/Docs.git
synced 2025-07-03 00:16:05 +00:00
Update server-reference.md
This commit is contained in:
parent
50157108ca
commit
d5658dbb73
@ -631,6 +631,25 @@ Results in:
|
|||||||
randFloat: 420.6969
|
randFloat: 420.6969
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `Util.LogInfo(params: ...)` et al (since v3.3.0)
|
||||||
|
|
||||||
|
```lua
|
||||||
|
Util.LogInfo("Hello, World!")
|
||||||
|
Util.LogWarn("Cool warning")
|
||||||
|
Util.LogError("Oh no!")
|
||||||
|
Util.LogDebug("hi")
|
||||||
|
```
|
||||||
|
produces
|
||||||
|
|
||||||
|
```
|
||||||
|
[19/04/24 11:06:50.142] [Test] [INFO] Hello, World!
|
||||||
|
[19/04/24 11:06:50.142] [Test] [WARN] Cool warning
|
||||||
|
[19/04/24 11:06:50.142] [Test] [ERROR] Oh no!
|
||||||
|
[19/04/24 11:06:50.142] [Test] [DEBUG] hi
|
||||||
|
```
|
||||||
|
|
||||||
|
Supports the exact same printing / dumping of data as `print()` does.
|
||||||
|
|
||||||
### FS Functions
|
### FS Functions
|
||||||
|
|
||||||
`FS` functions are **f**ile**s**ystem functions, which aim to be better than the default Lua capabilities.
|
`FS` functions are **f**ile**s**ystem functions, which aim to be better than the default Lua capabilities.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user