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
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0T44BE1va1z1gXkXTJ3rypAVDnxWVlokaZzZrbNoMO6PNevKDMMooVbAYkcwg1qjbWxNzIZtd5ES4cUhgvEf1yBryEHmj63nslzz62lQMuxq9UPJaGxyhX2gUHEwjPfHJ3Xy4QG9QHga4p58GRXDX5jbtMoiUeQqgfEMxlKMcW4EUzpsnsuzn3ipuBq7zquTB1zedie8riarHsCk86FQCoVCTbyQbJkRkct1o5fYpM7GXpNRigrYCmqgzyCtFS3w9+8ev2OmcUd56v0yjF0Do4ms5o3NUUY4AcSQYOUXJ0mYDW5xFKKyunaRySHiwWmxT3vOmmE77q8ZWxdi/9FtMw==
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXqOJo+CPIDWYa+QKWRCkDdVXfLcQzKQ49QG/5DSFGH6Sq11U8YCiQ12oNFxwHX+tYtR6s3cuIN8iO1YQ8HKA7xbtBhkZNQnXRPF2wEs6IQ4Bxx9CdFWBXoeIKlFLg7Nj2rdX68g6xn+XtGngBjCbkKKYLc0qUhYvtDuv+AEbLymuXLkTXEcGDWjfETJ9go5qe1JdzphU+IqM83XBloSvt8myCVowIzAFWEQw1wIJ0bf2zS709kg31MDgtCAfL7vAFO+RtIy9q3cjcCxNecwfRCakgDa+AldOaW0lhGfqmlPBm/26OPaMMaGm5fMuFeT1XuttI4QAd/1RusePYUjot
rancher:
network:
interfaces:
eth*:
@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": [
---
- hosts: tomcatServer
vars:
- warName: ROOT.war
- warRemotePath: /home/tomcat
tasks:
- name: Download WAR to server
command: wget http://git-internal/release.war -O {{ warRemotePath }}/{{ warName }}
<?xml version="1.0" encoding="utf-8"?>
<schema id="NLog.Slack"
targetNamespace="https://gist.github.com/creativewild/271d217b6ffede760cbc6a33f5454b9f/raw/e79761a1acf70cd4dc75d8741242ddacfb56bb53/NLog.Slack.xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mstns="https://gist.github.com/creativewild/271d217b6ffede760cbc6a33f5454b9f/raw/e79761a1acf70cd4dc75d8741242ddacfb56bb53/NLog.Slack.xsd"
xmlns:nlog="http://www.nlog-project.org/schemas/NLog.xsd"
elementFormDefault="qualified">
<import namespace="http://www.nlog-project.org/schemas/NLog.xsd" />
<complexType name="Slack">
@creativewild
creativewild / gist:71a56102b60c48d44b1a
Created June 3, 2015 14:32
fix to add after line 32
'\[video\]([\S\s]+?)\[/video\]' => '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>',