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
| import os | |
| import sqlite3 | |
| import zlib | |
| con = sqlite3.connect("shader_overrides.db") | |
| con.row_factory = sqlite3.Row | |
| cur = con.cursor() | |
| cur.execute("SELECT id, source FROM shaders") |
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
| { | |
| "resource": "hardcap", | |
| "count": 25792 | |
| } | |
| { | |
| "resource": "_cfx_internal", | |
| "count": 25792 | |
| } | |
| { | |
| "resource": "sessionmanager", |
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
| import { privateDecrypt, constants } from "crypto" | |
| import fs from "fs" | |
| import fetch from "node-fetch" | |
| const input = `...` | |
| // decrypt payload | |
| const privateKey = fs.readFileSync("private.key") | |
| const data = new Buffer.from(input, "base64") |
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
| struct EventVar | |
| { | |
| char* name; | |
| int offset; // offset in eventvars array | |
| }; | |
| struct UnsavedVar | |
| { | |
| char* name; | |
| int* var; |
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
| BytesToOctets(ipv6.GetAddressBytes()); | |
| public static ushort[] BytesToOctets(byte[] bytes) | |
| { | |
| var octets = new ushort[8]; | |
| var j = 0; | |
| for(var i = 0; i < bytes.Length; i += 2) | |
| { | |
| octets[j] = (ushort)((bytes[i] << 8) | bytes[i + 1]); |
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
| RequestModel(`prop_cs_bucket_s`) | |
| RequestModel(`prop_cs_mop_s`) | |
| RequestAnimDict("missfbi_s4mop") | |
| RequestAnimSet("move_ped_bucket") | |
| RequestAnimSet("move_ped_wpn_bucket") | |
| Wait(1000) | |
| local bucket = CreateObjectNoOffset(`prop_cs_bucket_s`, GetEntityCoords(PlayerPedId()), true, true, false) | |
| local mop = CreateObjectNoOffset(`prop_cs_mop_s`, GetEntityCoords(PlayerPedId()), true, true, false) |
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
| -- get the interior id of floyd's house | |
| local interiorid = GetInteriorAtCoords(-1157.1294, -1523.0276, 9.6327) | |
| -- load the interior props | |
| EnableInteriorProp(interiorid, "swap_clean_apt") | |
| EnableInteriorProp(interiorid, "swap_wade_sofa") | |
| EnableInteriorProp(interiorid, "layer_sextoys_a") | |
| -- always refresh the interior or they won't appear | |
| RefreshInterior(interiorid) |