Skip to content

Instantly share code, notes, and snippets.

View martonp96's full-sized avatar
🤔
think

Péter Marton martonp96

🤔
think
  • Hungary
View GitHub Profile
@martonp96
martonp96 / minhook.hpp
Last active March 14, 2023 19:07
Single header minhook (x64 only)
/*
* Hacker Disassembler Engine 64
* Copyright (c) 2008-2009, Vyacheslav Patkov.
* All rights reserved.
*/
/*
* MinHook - The Minimalistic API Hooking Library for x64/x86
* Copyright (C) 2009-2017 Tsuda Kageyu.
* All rights reserved.
export class OutDescription {
constructor(){
this._target = null;
this._bitStream = null;
}
uint(name, bits) {
this._target[name] = this._bitStream.readUInt(bits);
}
This file has been truncated, but you can view the full file.
{
"id": 0,
"name": "@altmp/altv-types",
"kind": 0,
"flags": {},
"children": [
{
"id": 1,
"name": "\"alt-client\"",
"kind": 1,
@martonp96
martonp96 / README.txt
Created January 16, 2019 14:06 — forked from NelsonMinar/README.txt
GTA V Map Viewer
Tools for making a very simple web slippy map of Grand Theft Auto V maps.
By Nelson Minar <nelson@monkey.org>
I don't want to host this map myself because of copyright concerns.
No support provided for this code, just hoping it's a useful guide for
someone to roll their own amp.
maketiles.sh runs gdal2tiles.py to slice up the source image into tiles.
map.html is a simple Leaflet / web map.
@martonp96
martonp96 / gtaexehashes.h
Created August 1, 2018 23:26
gta exe hashes
char gta_md5_list[][33] =
{
"e7697a085336f974a4a6102a51223960", // original gta_sa.exe
"170b3a9108687b26da2d8901c6948a18", // cracked gta_sa.exe's
"6c6160da9b175b66cf9127c86be57bf7", // ^
"68ba9ec43813ad58e39d64f88ebdc6a6", // ^
"c8a31567f7279889cff09e49f3b8ce7a", // ^
"842c61a45ace7638ff1e85d1f7a38545", // ^
"8a3ff2c40e64ecb8ebe9a51d36b18b21", // ^
"25405921d1c47747fd01fd0bfe0a05ae", // euro v1.01 cracked DEViANCE
@martonp96
martonp96 / camerainterp.lua
Last active July 25, 2017 11:22
interpolation v1
--server side
Player:On('command', function(p, cmd, args, rargs)
if cmd == "cs" then
p:triggerClient("createSplineCam")
end
end)
--client side
Server:On("createSplineCam", function(key,value)
@martonp96
martonp96 / vehspawn.lua
Last active July 7, 2017 18:08
GTA Orange vehicle array & spawner v1
--server
local VehicleNames =
{
"Dinghy","Dinghy2","Dinghy3","Dinghy4","Jetmax","Marquis","Seashark","Seashark2","Seashark3","Speeder","Speeder2",
"Squalo","Submersible","Submersible2","Suntrap","Toro","Toro2","Tropic","Tropic2","Tug","Benson","Biff","Hauler","Mule",
"Mule2","Mule3","Packer","Phantom","Phantom2","Pounder","Stockade","Stockade3","Blista","Blista2","Blista3","Brioso",
"Dilettante","Dilettante2","Issi2","Panto","Prairie","Rhapsody","CogCabrio","Examplar","F620","Felon","Felon2",
"Jackal","Oracle","Oracle2","Sentinel","Sentinel2","Windsor","Windsor2","Zion","Zion2","Bmx","Cruiser","Fixter",
"Scorcher","TriBike","TriBike2","TriBike3","Ambulance","FBI","FBI2","FireTruck","PBus","Police","Police2","Police3","Police4",
"PoliceOld1","PoliceOld2","PoliceT","Policeb","Polmav","Pranger","Predator","Riot","Sheriff","Sheriff2",