Skip to content

Instantly share code, notes, and snippets.

View umaruru's full-sized avatar

umaruru umaruru

  • Brazil
View GitHub Profile
{
// Place your snippets for haxe here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@umaruru
umaruru / MeshTrail.gd
Last active July 4, 2019 01:36
Mesh trail
extends Spatial
# materials have to be set as transparent
# change depth draw mode
# change render priority
# probably won't work on GLES2 due to this
export var mesh_amount : int = 8
var mesh_trail = []
@umaruru
umaruru / rdr2_prompt_research.md
Last active October 16, 2024 06:08
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).