Skip to content

Instantly share code, notes, and snippets.

const NUM_COMPONENT_TYPES = 16;
const ENTITY_TYPE_PLAYER = 0;
const GET_SHOP_PED_COMPONENT = 0x74C0E2A57EC66760n;
const GET_SHOP_PED_PROP = 0x5D5CAFF661DDF6FCn;
function isBitSet(num, position) {
return (num & (1 << position)) !== 0;
}
function applyComponentsFromBuffer(player, componentBytes) {
const m23_1_prop_m31_ghostsalton_01a = mp.game.joaat("m23_1_prop_m31_ghostsalton_01a");
const m23_1_prop_m31_ghostrurmeth_01a = mp.game.joaat("m23_1_prop_m31_ghostrurmeth_01a");
const m23_1_prop_m31_ghostskidrow_01a = mp.game.joaat("m23_1_prop_m31_ghostskidrow_01a");
const m23_1_prop_m31_ghostzombie_01a = mp.game.joaat("m23_1_prop_m31_ghostzombie_01a");
const m23_1_prop_m31_ghostjohnny_01a = mp.game.joaat("m23_1_prop_m31_ghostjohnny_01a");
const m24_1_prop_m41_ghost_dom_01a = mp.game.joaat("m24_1_prop_m41_ghost_dom_01a");
const GHOST_DATA = [
// mp2023
{ model: m23_1_prop_m31_ghostsalton_01a, position: new mp.Vector3(63.7611, 6664.9165, 30.7754), rotation: new mp.Vector3(0.0, 0.0, -127.2) },
function searchSpawnPointsAsync(options) {
const { position, radius, maxHeightDifference = 5.0, flags = 0, minDistanceBetweenPoints = 0.0, timeout = 0 } = options;
return new Promise((resolve, reject) => {
// cancel the active search if there is one
if (mp.game.ped.spawnpointsIsSearchActive()) {
mp.game.ped.spawnpointsCancelSearch();
}
// start new search
// Build 2699 - Online Version 1.61 (The Criminal Enterprises DLC)
// Mirror of https://rage.mp/forums/topic/11854-the-criminal-enterprises-hashes/
// Vehicles
// Name - Model Name - Hash - Class
Grotti Brioso 300 Widebody - brioso3 - 0x00E827DE - Compacts
Buckingham Conada - conada - 0xE384DD25 - Helicopters
Lampadati Corsita - corsita - 0xD3046147 - Sports
Declasse Draugur - draugur - 0xD235A4A6 - Off-Road
Bravado Greenwood - greenwood - 0x26ED430 - Muscle
Model: reh_prop_reh_bag_weed_01a | Position: -1002.254, 130.075, 55.519 | Rotation: 0, 0, 118.689
Model: reh_prop_reh_bag_weed_01a | Position: -1504.595, -36.351, 54.707 | Rotation: 0, 0, 128.289
Model: reh_prop_reh_bag_weed_01a | Position: -1677.41, -443.6646, 39.8968 | Rotation: 0, 0, 51.489
Model: reh_prop_reh_bag_weed_01a | Position: -842.328, -345.95, 38.501 | Rotation: 0, 0, 121.288
Model: reh_prop_reh_bag_weed_01a | Position: -430.64, 288.196, 86.174 | Rotation: 0, 0, -91.912
Model: reh_prop_reh_bag_weed_01a | Position: 1575.068, -1732.029, 87.9448 | Rotation: 0, 0, -139.6008
Model: reh_prop_reh_bag_weed_01a | Position: -2038.497, 539.83, 109.752 | Rotation: 0, 0, -168.268
Model: reh_prop_reh_bag_weed_01a | Position: -2973.772, 20.3182, 7.4278 | Rotation: 0, 0, -25.916
Model: reh_prop_reh_bag_weed_01a | Position: -3235.982, 1104.414, 2.602 | Rotation: 0, 0, 168.084
Model: reh_prop_reh_bag_weed_01a | Position: -2630.007, 1874.927, 160.251 | Rotation: 0, 0, -45.916
Model: reh_Prop_REH_Lantern_PK_01a | Position: -189.701, -763.3126, 29.454 | Rotation: 0, 0, -20.6982
Model: reh_Prop_REH_Lantern_PK_01b | Position: -233.321, -909.614, 31.3158 | Rotation: 0, 0, 78.199
Model: reh_Prop_REH_Lantern_PK_01c | Position: -553.5505, -815.0607, 29.6916 | Rotation: 0, 0, 41.999
Model: reh_Prop_REH_Lantern_PK_01a | Position: -728.8868, -678.7939, 29.315 | Rotation: 0, 0, 234.5034
Model: reh_Prop_REH_Lantern_PK_01b | Position: -1185.507, -566.7111, 27.3348 | Rotation: 0, 0, 220.1651
Model: reh_Prop_REH_Lantern_PK_01c | Position: -1339.806, -409.658, 35.373 | Rotation: -0.17, 5.103, -151.594
Model: reh_Prop_REH_Lantern_PK_01a | Position: -1536.558, -423.9365, 34.597 | Rotation: 0, 0, 40.3985
Model: reh_Prop_REH_Lantern_PK_01b | Position: -1580.622, -952.5058, 12.0174 | Rotation: 0, 0, 232.3804
Model: reh_Prop_REH_Lantern_PK_01c | Position: -1976.58, -532.485, 10.826 | Rotation: 0, 0, -35.395
Model: reh_Prop_REH_Lantern_PK_01a | Position: -1884.625, -366.126, 48.354 | Rotation: 0, 0, -46.
// 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
// 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
Model: tr_prop_tr_boat_wreck_01a | Position: -388.326, -2216.494, 0.456 | Rotation: 0.9, -13.3, 42
Model: tr_prop_tr_boat_wreck_01a | Position: -870.536, -3121.905, 2.382 | Rotation: -0.639, -3.23, 81.272
Model: tr_prop_tr_boat_wreck_01a | Position: -1968.847, -3076.143, 2.048 | Rotation: 2.812, -19.453, 44.793
Model: tr_prop_tr_boat_wreck_01a | Position: -1224.298, -1860.696, 1.785 | Rotation: -17.744, -20.834, 3.977
Model: tr_prop_tr_boat_wreck_01a | Position: -1681.625, -1079.203, 0.391 | Rotation: 0, -8.592, 40.778
Model: tr_prop_tr_boat_wreck_01a | Position: -2219.021, -435.363, 1.403 | Rotation: 0, -9.5, 1.778
Model: tr_prop_tr_boat_wreck_01a | Position: -3094.448, 497.921, 1.088 | Rotation: -18.521, -17.959, 5.299
Model: tr_prop_tr_boat_wreck_01a | Position: -3224.264, 1333.485, 1.344 | Rotation: 0, -3.7, 64.499
Model: tr_prop_tr_boat_wreck_01a | Position: -2882.416, 2246.783, 0.94 | Rotation: -10.5, 0.102, -42.183
Model: tr_prop_tr_boat_wreck_01a | Position: -1767.434, 2645.192, 0.559 | Rotation: 0, -
// Build 2189 - Online Version 1.52 (The Cayo Perico Heist DLC)
// Mirror of https://rage.mp/forums/topic/9565-the-cayo-perico-heist-hashes/
// Vehicles
// Name - Model Name - Hash - Class
RO-86 Alkonost - alkonost - 0xEA313705 - Planes
Annihilator Stealth - annihilator2 - 0x11962E49 - Helicopters
Kraken Avisa - avisa - 0x9A474B5E - Boats
Grotti Brioso 300 - brioso2 - 0x55365079 - Compacts
Nagasaki Weaponized Dinghy - dinghy5 - 0xC58DA34A - Boats