Initial commit
This commit is contained in:
26
Client/WorldThread.cs
Normal file
26
Client/WorldThread.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
using GTA;
|
||||
using GTA.Native;
|
||||
|
||||
namespace CoopClient
|
||||
{
|
||||
public class WorldThread : Script
|
||||
{
|
||||
public WorldThread()
|
||||
{
|
||||
Tick += OnTick;
|
||||
Interval = 1000 / 60;
|
||||
}
|
||||
|
||||
public static void OnTick(object sender, EventArgs e)
|
||||
{
|
||||
if (Game.IsLoading)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Function.Call((Hash)0xB96B00E976BE977F, 0.0f); // _SET_WAVES_INTENSITY
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user