Skip to content

Instantly share code, notes, and snippets.

View draobrehtom's full-sized avatar
😁
Suffering from idleness

Drao draobrehtom

😁
Suffering from idleness
View GitHub Profile
@fingaweg
fingaweg / scrCommand_dump_b1491.50
Last active November 18, 2025 04:20
This gist lists all RDR2.exe (Build 1.0.1491.50) Natives (Commands) alphabetically sorted by their Handler Address, Focus on confirmed names without underscore to guess new names.
[NativeHelper::Init] Parsed 7132 natives in 86 namespaces
Original Hash: 0x14D29BB12D47F68C, Current Hash: 0x14D29BB12D47F68C, Address: 0x11CC10 SET_CONTROL_TRIGGER_SHAKE
Original Hash: 0xC964FCD3D1720697, Current Hash: 0xC964FCD3D1720697, Address: 0x11CC10 _0xC964FCD3D1720697
Original Hash: 0x0CC28C08613BA9E5, Current Hash: 0x0CC28C08613BA9E5, Address: 0x11CC10 _0x0CC28C08613BA9E5
Original Hash: 0x19ABCC581D28E6F9, Current Hash: 0x19ABCC581D28E6F9, Address: 0x11CC10 SET_ALL_MAPDATA_CULLED
Original Hash: 0x72751156E7678833, Current Hash: 0x72751156E7678833, Address: 0x11CC10 SET_IGNORE_NO_GPS_FLAG
Original Hash: 0xA9342743B634A462, Current Hash: 0xA9342743B634A462, Address: 0x11CC10 _0xA9342743B634A462
Original Hash: 0x94B261F1F35293E1, Current Hash: 0x94B261F1F35293E1, Address: 0x11CC10 _0x94B261F1F35293E1
Original Hash: 0x160F0CE6D76A39C9, Current Hash: 0x160F0CE6D76A39C9, Address: 0x11CC10 _0x160F0CE6D76A39C9
Original Hash: 0xFC6FCF4C03F1BBF6, Current Hash: 0xFC6FCF4C03F1BBF6, Address: 0x11CC10 _0xFC6FCF4C
@umaruru
umaruru / rdr2_prompt_research.md
Last active August 7, 2025 21:24
RDR2 Prompt research

Prompt Research

Note: The code examples below should work on RedM. On other frameworks, you may need to adjust some function names.

Creating prompts

To create a prompt, start with _UI_PROMPT_REGISTER_BEGIN (0x04F97DE45A519419), set up some settings, then finish with _UI_PROMPT_REGISTER_END (0xF7AA2696A22AD8B9). While there's a native to create prompts (_UI_PROMPT_CREATE (0x29FA7910726C3889)), there aren't many exemples around.

A prompt basically needs a control and a text. You can find a list of controls here Controls (femga/rdr3_discoveries). The text has to be created with VAR_STRING (0xFA925AC00EB830B9).

@t3chman
t3chman / gist:73d361645fd7a4a7f3200ecb37565d4e
Last active November 20, 2023 12:53
Cfx Lua Meta Fields - Pointer/Result Handling
Meta Fields - Pointer Handling
---------------------
The Lua runtime allows specifying pointer or result types with native execution via Meta Fields found in the `Citizen` namespace:
- PointerValueInt
- PointerValueIntInitialized
- PointerValueFloat
- PointerValueVector
- ReturnResultAnyway
--[[
Copyright 2022 ZeroDream
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
@nathanctech
nathanctech / proxy-nginx-fxserver.md
Created May 1, 2020 14:23
FXServer Reverse Proxy

Proxying FiveM Connections using Nginx

As of server version 2377, support was added to FiveM to run a custom streaming proxy similar to cfx.re, but proxying the data connection (UDP) as well. This can be accomplished very easily with nginx acting as a proxy, and you can combine the caching proxy with it.

Requirements

  • Nginx 1.17+ (1.16 absolute minimum, guide tested on 1.17)
  • Server with reasonable network bandwidth (500mbps uplink strongly suggested)
  • FXserver version 2377 or later
  • SSL certificate for the domain you're using (highly recommended)
{
"62870901": {
"HashKey": "WEAPON_SNOWLAUNCHER",
"NameGXT": "WT_SNOWLNCHR",
"DescriptionGXT": "WTD_SNOWLNCHR",
"Name": "Snowball Launcher",
"Description": "There's no greater gift than pummeling someone with rounds of festive cheer. With automatic reload, there's no time for anyone to disagree. Part of The Chop Shop.",
"Group": "GROUP_HEAVY",
"ModelHashKey": "W_LR_CompactSL_M32",
"DefaultClipSize": 20,
@alexguirre
alexguirre / Particles Effects Dump.txt
Last active October 18, 2025 18:02
GTA V Particle Effects Dump
# Thanks to CodeWalker for the code to read .ypt files: https://github.com/dexyfex/CodeWalker
#
# Format:
# [asset_name]
# effect_name_1
# effect_name_2
#
[core]
bul_gravel_heli
@matthewoden
matthewoden / AWS Git Setup.md
Created May 22, 2016 17:48
Setting up a remote Git in AWS EC2

AWS Remote Git Setup

Get a local git repo up on an EC2 Instance.

Add youself to SSH Authentication:

Add yourself to the ssh auth agent, if you haven't already.

ssh-add path/to/your/EC2.pem

Set up destination directory:

@roachhd
roachhd / README.md
Last active December 10, 2025 14:27
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@hansmaad
hansmaad / gist:9187633
Last active June 6, 2025 14:50
WPF Flat Combo Box Style
<!-- Flat ComboBox -->
<SolidColorBrush x:Key="ComboBoxNormalBorderBrush" Color="#e3e9ef" />
<SolidColorBrush x:Key="ComboBoxNormalBackgroundBrush" Color="#fff" />
<SolidColorBrush x:Key="ComboBoxDisabledForegroundBrush" Color="#888" />
<SolidColorBrush x:Key="ComboBoxDisabledBackgroundBrush" Color="#eee" />
<SolidColorBrush x:Key="ComboBoxDisabledBorderBrush" Color="#888" />
<ControlTemplate TargetType="ToggleButton" x:Key="ComboBoxToggleButtonTemplate">
<Grid>
<Grid.ColumnDefinitions>