Calling the ScriptHook WAIT (scriptWait) function anywhere outside of the main loop will immediately crash the game, same applies if you yield anywhere at all in the script.
This is most likely due to the graphics API functions that are supposed to be called every frame? Needs more testing.
Calling the ScriptHook
WAIT
(scriptWait
) function anywhere outside of the main loop will immediately crash the game, same applies if you yield anywhere at all in the script.This is most likely due to the graphics API functions that are supposed to be called every frame? Needs more testing.