Skip to content

Instantly share code, notes, and snippets.

View Tustin's full-sized avatar

Josh Tustin

View GitHub Profile
@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 / 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 / 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
<?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);
<?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) {
enum Menus {
MAIN_MENU,
PLAYER_MENU,
VEHICLE_MENU,
WEAPON_MENU,
WORLD_MENU,
};
enum PlayerMenu {
GODMODE,
//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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RAGE.Parser.Globals
{
public class Global
{
int __fastcall repEncrpyt(int a1, char *a2, signed int a3)
{
char *v3; // r3@1
signed int v4; // r7@1
int v5; // r6@1
unsigned int v6; // r2@1
int v7; // r5@1
char *v8; // r5@2
int v9; // r4@2
__int32 v10; // r0@3
package main
import (
"bufio"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"strconv"