G1R:MP Forum Alpha
Log in Join
Gothic 1 Remake Multiplayer

The Colony Forum

News, support, development discussions, server communities, and stories from beyond the Barrier.

Colony discussion

Random Number

Started by Xardas0327 in Suggestions

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
09-13-2026, 08:08 PM (This post was last modified: 09-13-2026, 08:09 PM by Xardas0327.)
#4
I know this.
It would be good, if this code could work.

But this code doesn't work:
Quote:math.randomseed(os.time())

I get this error:
Quote:attempt to index global 'os' (a nil value)

And you can read it on wiki:
The os is unavailable. (and many other packages too)
You can see it under the Lua VM and execution.
https://g1r-mp.com/wiki/index.php?title=...ing_limits

But if the os is active from the next version (0.1.4 or similar), it is fine for me.
Forum Jump: