Skip to content

Instantly share code, notes, and snippets.

View creativewild's full-sized avatar

Luis Gomes creativewild

  • Ubisoft Reflections
  • United Kingdom
View GitHub Profile
@creativewild
creativewild / herbs_vectors.lua
Created July 16, 2025 13:01 — forked from masnana/herbs_vectors.lua
All ingame RDR2 herbs composite coords
local CompositeVectors2 = {
{
name = "COMPOSITE_LOOTABLE_RED_SAGE_DEF",
vectors = {
vec3(-4155.91300000, -3081.16300000, -7.18271600),
vec3(-4061.17600000, -3077.00600000, -9.24422000),
vec3(-3858.27000000, -3102.01100000, -15.07183000),
vec3(-4871.26900000, -3043.14300000, -18.55653000),
vec3(-4772.27900000, -3054.58900000, -14.54931000),
vec3(-4746.45900000, -3014.77500000, -18.02266000),

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).

@creativewild
creativewild / vmware-template.centos7.sh
Last active March 30, 2022 12:12 — forked from efeldhusen/vmware-template.centos7.sh
Bash script for Centos 7.x VMware Template Images
#!/bin/bash
#Paths are for Centos 7.x
# Updates to latest patch level and Install optional packages
/usr/bin/yum update -y
/usr/bin/yum install -y epel-release
/usr/bin/yum install -y bash-completion htop yum-utils dkms open-vm-tools perl python
#stop logging services
/sbin/service rsyslog stop
@creativewild
creativewild / how_to.md
Created January 25, 2018 10:17 — forked from oanhnn/how_to.md
How to fix composer error "Content-Length Mismatch"

First, run:

$ composer config --list --global        //this will get the composer home path.
[home] /root/.composer                   //it's my composer home path.

And then, edit the config.json in [home] directory, make it like this:

{
  "config": {
 "github-protocols": [