Skip to content

Instantly share code, notes, and snippets.

@R4ndomizeR
R4ndomizeR / airport.ts
Created February 20, 2021 15:40
Alt:V Airport cutscene you can't just copy and paste this code. would be nice if you spend me a ko-fi :P https://ko-fi.com/mempler
const playFieldCoord = { x: -1212.79, y: -1673.52, z: 7 };
const airportCoord = { x: -1466.79, y: -2507.52, z: 0 };
export const Execute = async (extra: any[]) => {
const ped: Ped = Ped.GetPlayerPed(alt.Player.local);
native.prepareMusicEvent('GLOBAL_KILL_MUSIC');
native.prepareMusicEvent('FM_INTRO_START');
@R4ndomizeR
R4ndomizeR / checkpoint.ts
Created February 20, 2021 15:40 — forked from alextwothousand/checkpoint.ts
clientsided checkpoints
import * as alt from "alt-client";
import * as native from "natives";
export let checkpoints: Record<number, Checkpoint> = {};
const player = alt.Player.local;
export class Checkpoint {
pos: { x1: number; y1: number; z1: number; x2: number; y2: number; z2: number; };
cpRadius: number;
cp: number;
@R4ndomizeR
R4ndomizeR / marker.ts
Created February 20, 2021 15:40 — forked from alextwothousand/marker.ts
Marker.js/ts
/// <reference types="@altv/types-server" />
import * as alt from "alt-server";
let markers = {};
export class Marker {
/**
* Creates a brand new marker.
* @param {number} type
* @param {alt.Vector3} position