Plusik Posted March 21, 2022 Share Posted March 21, 2022 Hello, I have a problem with "math.random" on the client side. Namely, I would like to draw numbers after reconnecting to the server. However, after resetting the resource it actually works, but when the player does "/ reconnect" the numbers are always the same. My test feature is: random1, random2, random3, random4, random5 = math.random (1.10000), math.random (1.10000), math.random (1.10000), math.random (1.10000), math.random ( 1,10000) outputChatBox (random1 .. "," ..random2 .. "," ..random3 .. "," ..random4 .. "," ..random5) Result: - After restarting the resource the commands / restart actually gets random numbers, but after connecting to the server, he always receives the same numbers again: 93, 3486, 6439, 3433, 4146 (I apologize for grammatical errors, translated by Google translator) Link to comment
Administrators Tut Posted March 21, 2022 Administrators Share Posted March 21, 2022 Closing this as duplicate - as this is a scripting issue, your other thread has been moved into the Polish scripting section. https://forum.multitheftauto.com/topic/134849-problem-z-mathrandom-po-client-side/ Link to comment
Recommended Posts