Skip to content

Instantly share code, notes, and snippets.

View draobrehtom's full-sized avatar

Drao draobrehtom

View GitHub Profile
@draobrehtom
draobrehtom / redm-research.json
Created March 6, 2026 13:40
Messages from CFX discord #redm-research channel dated by 6th of March, 2026
[
{
"id": "643437994904125442",
"channel": "redm-research",
"channel_id": "643437867044962304",
"author": "blattersturm",
"author_id": "214942714846904321",
"content": "omg frist!!",
"timestamp": "2019-11-11T14:12:52.485+01:00"
},
^4 _ ^0 ^7 _____ _ _ _ ^0
^4| | _ _ _ __ ___ __ _ _ __ ^0 ^7/ ___| | | (_) ^0
^4| | | | | | '_ ` _ \ / _` | '_ \ ^0 ^7\ `--.| |_ _ _ __| |_ ___ ^0
^4| | | |_| | | | | | | (_| | | | | ^0 ^7 `--. \ __| | | |/ _` | |/ _ \ ^0
^4| |____\__,_|_| |_| |_|\__,_|_| |_| ^0 ^7/\__/ / |_| |_| | (_| | | (_) |^0
^4\_____/ ^0 ^7\____/ \__|\__,_|\__,_|_|\___/ ^0
^3PvP Arena ^0| ^7Free resource by Luman Studio^0
^3Store:^0 ^4https://lumanstudio.com/^0
^3More scripts and maps at our store!^0
@draobrehtom
draobrehtom / hacking.lua
Created July 31, 2025 10:16
Hack minigame for FiveM in Lua
-- HackingGame Library
-- A clean, reusable hacking mini-game for FiveM
local HackingGame = {}
-- Default configuration
local defaultConfig = {
maxLives = 5,
columnSpeeds = {
min = 150,
@draobrehtom
draobrehtom / glucose-sodium-nineteen.txt
Last active June 23, 2025 12:21
FiveM glucose-sodium-nineteen (duplicated .ytd file name)
FiveM glucose-sodium-nineteen (duplicated .ytd file name)
@draobrehtom
draobrehtom / s_onesyncscope.lua
Created February 22, 2025 03:22
OneSync Scope in FiveM/RedM
local playerScopes = {}
local function getPlayersInScope(playerId)
return playerScopes[playerId] or {}
end
local function isPlayerInScope(targetId, forPlayerId)
return playerScopes[forPlayerId] and playerScopes[forPlayerId][targetId]
end
@draobrehtom
draobrehtom / c_siren.lua
Last active February 17, 2025 18:14
Example of state bags usage in FiveM (Siren system for vehicles)
local sirens = {}
local function playSiren(entity)
-- Prevent from playing siren twice
if sirens[tostring(entity)] then return false end
print('Play siren', 'State', Entity(entity).state['siren'])
sirens[tostring(entity)] = true
return true
end
local function stopSiren(entity)
sirens[tostring(entity)] = nil
@draobrehtom
draobrehtom / mapDataByKeys.php
Created January 25, 2025 22:13
Creates unique keys by combining specified row values Maps those keys directly to their corresponding rows Provides more flexibility Significantly improves performance
protected function mapReportDataByKeys(array $data, array $keys, ?string $delimiter = '-'): array
{
return array_combine(
array_map(
fn($row) => implode($delimiter, array_map(fn($key) => $row[$key], $keys)),
$data
),
$data
);
}
@draobrehtom
draobrehtom / skin.lua
Created October 4, 2024 16:42
Get/set skin in FiveM
local faceFeatures = {
"Nose_Width", "Nose_Peak_Hight", "Nose_Peak_Lenght", "Nose_Bone_High", "Nose_Peak_Lowering",
"Nose_Bone_Twist", "EyeBrown_High", "EyeBrown_Forward", "Cheeks_Bone_High", "Cheeks_Bone_Width",
"Cheeks_Width", "Eyes_Openning", "Lips_Thickness", "Jaw_Bone_Width", "Jaw_Bone_Back_Lenght",
"Chimp_Bone_Lowering", "Chimp_Bone_Lenght", "Chimp_Bone_Width", "Chimp_Hole", "Neck_Thikness",
}
local headOverlays = {
"Blemishes", "FacialHair", "Eyebrows", "Ageing", "Makeup", "Blush", "Complexion", "SunDamage",
"Lipstick", "MolesFreckles", "ChestHair", "BodyBlemishes", "AddBodyBlemishes",
@draobrehtom
draobrehtom / redm_movenetwork_research.md
Created July 3, 2024 21:43
RedM MoveNetwork research

RedM MoveNetwork Research

Introduction

MoveNetwork natives in RedM are typically used to control specific scenarios that have multiple animation steps and involve interacting with items/objects in the world.

For example, MoveNetwork natives are used to control (portions of) the bathing sequence, campfire interaction, base game character creation char movement, and many of the minigame sequences found in the game.

They are also used in the safe-cracking minigame - this is the example we will be using in this documentation, as it relates to the vault itself.

@draobrehtom
draobrehtom / client.lua
Created July 1, 2024 09:04
VORP Inventory Item Exploit - from 01.07.2024
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
TriggerServerEvent('syn_weapons:buyammo', 'water', 0, 1, 'Water')
-- Be careful, or you might flood your script with water