Skip to content

Instantly share code, notes, and snippets.

View narcisbugeag's full-sized avatar
:shipit:
<Esc>:wq!<Ret>

Narcis Bugeag narcisbugeag

:shipit:
<Esc>:wq!<Ret>
View GitHub Profile
// Build 2545 - Online Version 1.58 (The Contract DLC)
// Mirror of https://rage.mp/forums/topic/10964-the-contract-hashes/
// Vehicles
// Name - Model Name - Hash - Class
Pfister Astron - astron - 0x258C9364 - SUVs
Gallivanter Baller ST - baller7 - 0x1573422D - SUVs
Bravado Buffalo STX - buffalo4 - 0xDB0C9B04 - Muscle
Dewbauchee Champion - champion - 0xC972A155 - Super
Lampadati Cinquemila - cinquemila - 0xA4F52C13 - Sedans
@yannbcf
yannbcf / index.vue
Created December 13, 2021 06:47
custom alt:V drag & drop implementation
<script setup lang="ts">
import { InventoryManager } from './inventoryManager';
import { onMounted, onUnmounted } from 'vue';
import { Container } from 'typedi';
onMounted(() => {
const inventoryManager = Container.get(InventoryManager);
const container = document.querySelector('.container');
if (!inventoryManager || !container) return;
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
{
"files.autoSave": "onFocusChange",
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.easymotionMarkerooundColor": "#020202",
"vim.normalModeKeyBindings": [
@amishshah
amishshah / discordjs.md
Created October 22, 2021 22:36
tl;dr i'm stepping down as owner of discord.js!

Hello! I'm Amish (also known as hydrabolt), and I am the creator of discord.js.

I created discord.js as a hobby/learning project for myself in August 2015 while I was still a teenager in school.

More than 6 years later, discord.js has become more popular than I could ever imagine, and I cannot express how grateful I am to the other contributors and the community for this amazing experience.

A few of my favourite highlights include:

  • The countless voice rewrites (I think we're done with that now 😉)
  • The April Fools' traditions
@pkfln
pkfln / macronym.inc
Last active June 18, 2024 07:00
This will make u very fast coding in pawno... coding go brrrr - inspired by SCM
// I want to see the world burn
#define SCM SendClientMessage
#define SCMTA SendClientMessageToAll
#define SPMTP SendPlayerMessageToPlayer
#define SPMTA SendPlayerMessageToAll
#define SDM SendDeathMessage
#define SDMTP SendDeathMessageToPlayer
#define GTFA GameTextForAll
#define GTFP GameTextForPlayer
@TheDutchDev
TheDutchDev / 1-async-models.ts
Last active October 15, 2021 03:50
alt:V MP Async model loading with cancellation and clearing of previously loaded models that are no longer being used.
import * as alt from 'alt-client';
import * as natives from 'natives';
class AsyncModel {
constructor() {
this.loadingModels = new Set();
this.loadedModels = new Map();
}
cancel(model) {
this.loadingModels.delete(model);
this.removeLoadedModel(model);
@TheDutchDev
TheDutchDev / 1-AltVWsSharp.cs
Last active October 11, 2021 12:12
ALTV WebsocketSharp with LetsEncrypt SSL (https://github.com/sta/websocket-sharp)
using AltV.Net.Data;
using System;
using System.Collections.Generic;
using System.Net.Security;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
using WebSocketSharp;
using WebSocketSharp.Server;
@Stuyk
Stuyk / leaderboard.ts
Created July 21, 2021 13:41
alt:V Player List Snippet
import * as alt from 'alt-client';
import * as native from 'natives';
import { SYSTEM_EVENTS } from '../../shared/enums/system';
import { requestScaleForm, Scaleform } from '../utility/scaleform';
import { Timer } from '../utility/timers';
const SCALEFORM_NAME = 'mp_mm_card_freemode';
const MAX_PLAYERS = 16;
let index = 1;
// Build 2372 - Online Version 1.57 (Los Santos Tuners DLC)
// Mirror of https://rage.mp/forums/topic/10496-los-santos-tuners-hashes/
// Vehicles
// Name - Model Name - Hash - Class
Karin Calico GTF - calico - 0xB8D657AD - Sports
Pfister Comet S2 - comet6 - 0x991EFC04 - Sports
Cypher - cypher - 0x68A5D1EF - Sports
Vapid Dominator ASP - dominator7 - 0x196F9418 - Muscle
Vapid Dominator GTT - dominator8 - 0x2BE8B90A - Muscle