ExecuteInGameThread

ExecuteInGameThread is a function that allows you to execute code using ProcessEvent.

It will execute as soon as the game has time to execute it.

Parameters

#TypeInformation
1functionCallback to execute when the game has time

Example

ExecuteInGameThread(function()
    print("Hello from the game thread!\n")
end)