Skip to content

Instantly share code, notes, and snippets.

View Tustin's full-sized avatar

Josh Tustin

View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RAGE.Parser.Globals
{
public class Global
{
//Compiled using RAGE-C by Tustin 4/15/2017
:__script_entry__
Function 0 2 0
//Auto assigning 13 statics
push_0
StaticSet1 1 //Menus_MAIN_MENU
push_1
StaticSet1 2 //Menus_PLAYER_MENU
push_2
StaticSet1 3 //Menus_VEHICLE_MENU
enum Menus {
MAIN_MENU,
PLAYER_MENU,
VEHICLE_MENU,
WEAPON_MENU,
WORLD_MENU,
};
enum PlayerMenu {
GODMODE,
<?php
foreach (scandir("scripts") as $dir) {
foreach (scandir("scripts/".$dir) as $file) {
if ($file == '.' || $file == '..') {
continue;
}
$path = pathinfo($file);
if ($path['extension'] == 'full') {
copy("scripts/$dir/" . $file, 'scripts/output/' . $file);
@Tustin
Tustin / why.c
Last active March 27, 2017 02:48
//Compiled using RAGE-C by Tustin 3/26/2017
:__script_entry__
Function 0 2 0
Call @main
Return 0 0
:main
Function 0 3 0
:loop_0
CallNative PLAYER_PED_ID 0 1
@Tustin
Tustin / script.csa
Created February 27, 2017 03:32
C -> RAGE assembly
//compiled using RAGE-C by Tustin
:__script__entry
Function 0 2 0
Call @main
Return 0 0
:main
Function 0 12 0
CallNative "player_id" 0 1
setF1 2
@Tustin
Tustin / lol.c
Created February 13, 2017 21:01
Hash PegasusImSorryKryptus(int uParam0)
{
switch (uParam0)
{
case 0:
return $("ztype");
case 1:
return $("stinger");
@Tustin
Tustin / WHAT.c
Last active February 13, 2017 20:52
int PegasusWHATTHEFUCK(int iParam0) {
if (iParam0 < 0)
{
return -1;
}
switch (iParam0)
{
case 0:
return 17;
#include <wchar.h>
#include <sys/prx.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <sys/ppu_thread.h>
#include <string.h>
#include <sys/sys_time.h>
#include <sys/time_util.h>
#include <stdarg.h>
<?php
class TunablesDiff {
//tunable value existed before, but it's value was changed
const TUNABLE_VALUE_CHANGED = 1;
//tunable value didn't exist before and was just added
const TUNABLE_NEW = 2;
//tunable was removed from the new version
const TUNABLE_REMOVED = 3;
public static function SortTunables($tunableJson) {