This file contains 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 Main | |
{ | |
public class Main : Events.Script | |
{ | |
public static MarkerInstance NextObjective { get; set; } = null; | |
public static float Player_Money { get; set; } = 0; | |
public static int ResX = 0; | |
public static int ResY = 0; | |
public static int tick = 0; |
This file contains 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
[Command("inventory")] | |
public void CMD_Inventory(Client client) | |
{ | |
PlayerStats pStats = PlayerHelper.GetPlayerStats(client); | |
if (pStats == null) | |
return; | |
List<Item> items = pStats.GetItems(); |
This file contains 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
<meta> | |
<info name="StuykSocket" author="Stuyk" type="script" /> | |
<script src="StuykSocket.dll"/> | |
<export class="StuykSocket" event="onSocketMessageRecieved" /> | |
</meta> |
This file contains 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
/// <summary> | |
/// Get an entire collection by Type. | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <returns></returns> | |
public static List<T> GetCollection<T>() | |
{ | |
try | |
{ | |
using (var db = new LiteDatabase($"{DatabaseHelper.DatabasePath}/Database.db")) |
This file contains 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.Text; | |
using GTANetworkAPI; | |
namespace WhateverYouWant.ServerClientEvents | |
{ | |
public class ObjectSync : Script | |
{ | |
[RemoteEvent("UpdateObjects")] |
This file contains 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 RAGE; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace CoffeeVClient.Utility | |
{ | |
public struct Vector2 | |
{ | |
public int X { get; set; } |
This file contains 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
import * as alt from 'alt'; | |
import * as chat from 'chat'; | |
import * as mongov from 'mongo-v'; | |
console.log('=> Started Commands'); | |
// Example of data being created for reference | |
/* | |
var exampleData = { | |
username: '', |
This file contains 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
import * as alt from 'alt'; | |
import * as chat from 'chat'; | |
import * as mongov from 'mongo-v'; | |
console.log('=> Started Events'); | |
const spawnLoc = {x: -1136.07, y: -3044.18, z: 14.1}; | |
const loggedInPlayers = []; | |
alt.on('playerConnect', (player) => { |
This file contains 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
const letters = '12345abcdefghijklmnopqrstuvwxyz'; | |
function randomName(length) { | |
let newName = ''; | |
for (let i = 0; i < length; i++) { | |
let number = Math.floor(Math.random() * letters.length - 2) + 2; | |
newName += letters[number]; | |
} | |
return newName; | |
} |
OlderNewer