This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using serverMP; | |
using System.Collections.Generic; | |
using System.Timers; | |
using serverMP.APIScript; | |
namespace Gamemode | |
{ | |
struct PlayerPing | |
{ | |
public PlayerInfo player; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using serverMP; | |
using serverMP.APIScript; | |
using System.Timers; | |
namespace Gamemode | |
{ | |
class WeatherTime : ScriptAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
using System.Reflection; | |
namespace Gamemode.AsanDB | |
{ | |
class SimpleORM | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Gamemode.AsanDB | |
{ | |
class Player : SimpleORM | |
{ | |
private int id; | |
private string username; | |
private string ip; | |
public int _id | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using MySql.Data.MySqlClient; | |
using serverMP; | |
namespace Gamemode.AsanDB | |
{ | |
class Db | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Citizen.CreateThread(function() | |
while true | |
do | |
-- These natives has to be called every frame. | |
SetVehicleDensityMultiplierThisFrame(0.0) | |
SetPedDensityMultiplierThisFrame(0.0) | |
SetRandomVehicleDensityMultiplierThisFrame(0.0) | |
SetParkedVehicleDensityMultiplierThisFrame(0.0) | |
SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0) | |