Skip to content

Instantly share code, notes, and snippets.

View VIRUXE's full-sized avatar

Flávio Pereira VIRUXE

View GitHub Profile
@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active August 13, 2025 16:15
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@fingaweg
fingaweg / scrCommand_dump_b3407.0
Last active May 15, 2025 23:11
This gist lists all GTA5.exe (Build 1.0.3407.0) Natives (Commands) alphabetically sorted by their Handler Address, Focus on confirmed names without underscore to guess new names.
[NativeHelper::Init] Parsed 6627 natives in 45 namespaces
Original Hash: 0x31B73D1EA9F01DA2, Current Hash: 0xE3F88173F42C071B, Address: 0x156DC CLEAR_FOCUS
Original Hash: 0x957E790EA1727B64, Current Hash: 0xB7C3B23648284A54, Address: 0x4F175C UNLOAD_ALL_CLOUD_HATS
Original Hash: 0x82ACC484FFA3B05F, Current Hash: 0x932EFF1079425E72, Address: 0xA767CC ABORT_VEHICLE_CREW_EMBLEM_REQUEST
Original Hash: 0xD01005D2BA2EB778, Current Hash: 0xF010888FF9A380E6, Address: 0xA767D8 ACTIVATE_AUDIO_SLOWMO_MODE
Original Hash: 0x34CFC4C2A38E83E3, Current Hash: 0x34CFC4C2A38E83E3, Address: 0xA767E4 _ACTIVATE_CAM_WITH_INTERP_AND_FOV_CURVE
Original Hash: 0x8609C75EC438FB3B, Current Hash: 0xC606B0B9BA3D6036, Address: 0xA76818 ADD_CAM_SPLINE_NODE
Original Hash: 0x0FB82563989CF4FB, Current Hash: 0xF5317F0839442D94, Address: 0xA7684C ADD_CAM_SPLINE_NODE_USING_CAMERA
Original Hash: 0x0A9F2A468B328E74, Current Hash: 0x327198ED493608E0, Address: 0xA76864 ADD_CAM_SPLINE_NODE_USING_CAMERA_FRAME
Original Hash: 0x609278246A29CA34, Current H
@fingaweg
fingaweg / scrCommand_dump_b3323.0
Created September 17, 2024 12:57
This gist lists all GTA5.exe (Build 1.0.3323.0) Natives (Commands) alphabetically sorted by their Handler Address, Focus on confirmed names without underscore to guess new names.
[NativeHelper::Init] Parsed 6600 natives in 45 namespaces
Original Hash: 0xA4718A1419D18151, Current Hash: 0x22A76EDE2316E9A1, Address: 0x4F0228 STOP_STREAM
Original Hash: 0x82ACC484FFA3B05F, Current Hash: 0x932EFF1079425E72, Address: 0xA6E664 ABORT_VEHICLE_CREW_EMBLEM_REQUEST
Original Hash: 0xD01005D2BA2EB778, Current Hash: 0xF010888FF9A380E6, Address: 0xA6E670 ACTIVATE_AUDIO_SLOWMO_MODE
Original Hash: 0x34CFC4C2A38E83E3, Current Hash: 0x34CFC4C2A38E83E3, Address: 0xA6E67C _ACTIVATE_CAM_WITH_INTERP_AND_FOV_CURVE
Original Hash: 0x8609C75EC438FB3B, Current Hash: 0xC606B0B9BA3D6036, Address: 0xA6E6B0 ADD_CAM_SPLINE_NODE
Original Hash: 0x0FB82563989CF4FB, Current Hash: 0xF5317F0839442D94, Address: 0xA6E6E4 ADD_CAM_SPLINE_NODE_USING_CAMERA
Original Hash: 0x0A9F2A468B328E74, Current Hash: 0x327198ED493608E0, Address: 0xA6E6FC ADD_CAM_SPLINE_NODE_USING_CAMERA_FRAME
Original Hash: 0x609278246A29CA34, Current Hash: 0x471C8924B79628DE, Address: 0xA6E714 ADD_CAM_SPLINE_NODE_USING_GAMEPLAY_FRAME
Original Hash: 0xB302244
@VIRUXE
VIRUXE / InstallDotNet452.ps1
Last active June 12, 2024 16:08
Download and Install .NET Framework 4.5.2 (required for C# development on FiveM)
Write-Host "Downloading .NET Framework 4.5.2..."
$outputFile = "dotNetFramework452.exe"
Try {
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/?linkid=397673&clcid=0x409" -OutFile $outputFile
If (Test-Path $outputFile) {
Write-Host "Download complete. Installing..."
Start-Process $outputFile -Args "/quiet /norestart" -Wait
Write-Host ".NET Framework 4.5.2 installed successfully."
} Else {
@ihyajb
ihyajb / carscaleform.lua
Created December 26, 2023 19:02
carscaleform.lua
--* idc if you use this in public / private script *--
--* But if you use *most / all* of my code credit would be nice 💖 *--
local MaxCars = 20 --Max is a HARD CAP OF 20, only make this number lower!
local function func_7050(string)
local scaleform = RequestScaleformMovie(string)
repeat
Wait(100)
until HasScaleformMovieLoaded(scaleform)
return scaleform
@tabarra
tabarra / README.md
Created April 19, 2023 06:52
Listing FiveM/GTA5 vehicle model classes/types that diverge.

If you need to spawn a vehicle on the server side, you can use CreateVehicleServerSetter(), but the issue is that you need the vehicle type, but on the server there is no native to get it from a vehicle model.
In txAdmin this was initially "solved" by getting the vehicle class on the client and sending that to the server use it as a type when creating the vehicle. The logic used on the client is to check for the class on the vehClassNamesEnum table and assuming automobile for classes not on that table.

Later it was noticed that the server needs "type" instead of "class", and there is also no GetVehicleTypeFromName() on the client.
To solve this issue, it was created a lookup table to fix mismatched types.

This gist shows how to generate that table.
This must be run every now and then since new vehicles are added to the game on new DLC releases.

@userMacieG
userMacieG / engine.lua
Last active March 22, 2024 12:19
Turn engine on and off via key (ox_lib)
lib.onCache('ped', function(value)
SetPedConfigFlag(value, 241, true) -- PED_FLAG_DISABLE_STOPPING_VEHICLE_ENGINE
SetPedConfigFlag(value, 429, true) -- PED_FLAG_DISABLE_STARTING_VEHICLE_ENGINE
end)
lib.addKeybind({
name = 'engine',
description = 'Engine',
defaultKey = 'Y',
onPressed = function(self)
@xXTurnerLP
xXTurnerLP / tp.lua
Last active February 25, 2024 19:42
FiveM Precise waypoint teleport script. Always teleports at the top most level, so if you mark a building it will teleport to the top of that building (No permissions, client side)
RegisterCommand("tp", function(source, args, rawCommand)
local waypointBlip = GetFirstBlipInfoId(GetWaypointBlipEnumId())
local blipPos = GetBlipInfoIdCoord(waypointBlip) -- GetGpsWaypointRouteEnd(false, 0, 0)
local z = GetHeightmapTopZForPosition(blipPos.x, blipPos.y)
local _, gz = GetGroundZFor_3dCoord(blipPos.x, blipPos.y, z, true)
SetEntityCoords(PlayerPedId(), blipPos.x, blipPos.y, z, true, false, false, false)
FreezeEntityPosition(PlayerPedId(), true)
@tabarra
tabarra / admins.json
Last active February 28, 2025 05:58
Temporary admins file for txAdmin, please add it to txData/admins.json. The password is masterpassword123.
[
{
"name": "txmaster",
"master": true,
"password_temporary": true,
"password_hash": "$2a$12$JterWfFQx1abyi.OBKTIW.mOiHl7wrlyaTnz21SmygI20qO2xIdu2",
"providers": {},
"permissions": []
}
]
local scopes = {}
AddEventHandler("playerEnteredScope", function(data)
local playerEntering, player = data["player"], data["for"]
if not scopes[player] then
scopes[player] = {}
end
scopes[player][playerEntering] = true