Skip to content

Commit

Permalink
chore: update some js resources (#36)
Browse files Browse the repository at this point in the history
updated chat imports
removed useless stuff
replaced interior loading with `loadDefaultIpls`
  • Loading branch information
xxshady authored Mar 5, 2024
1 parent aadf09a commit 665edb2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 141 deletions.
2 changes: 1 addition & 1 deletion chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ package.json
**Serverside**

```
import * as chat from 'chat';
import * as chat from 'alt:chat';
// Uses the chat resource to register a command.
// Sends a chat message to the player with their position information.
Expand Down
135 changes: 1 addition & 134 deletions freeroam/client/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
"use strict";
/// <reference path="typings/altv-client.d.ts"/>
/// <reference path="typings/natives.d.ts"/>
import * as alt from "alt-client";
import * as game from "natives";

Expand All @@ -18,137 +15,7 @@ alt.onServer("freeroam:switchInOutPlayer", (in_switch, instant_switch, switch_ty

// Source: https://github.com/Stuyk/altV-Open-Roleplay/blob/5ccdeb9e960a7e0fde758cc89c366ed2953cc639/resources/orp/client/systems/interiors.mjs
alt.onServer("freeroam:Interiors", () => {
alt.requestIpl("ex_dt1_02_office_02b");
alt.requestIpl("chop_props");
alt.requestIpl("FIBlobby");
alt.removeIpl("FIBlobbyfake");
alt.requestIpl("FBI_colPLUG");
alt.requestIpl("FBI_repair");
alt.requestIpl("v_tunnel_hole");
alt.requestIpl("TrevorsMP");
alt.requestIpl("TrevorsTrailer");
alt.requestIpl("TrevorsTrailerTidy");
alt.removeIpl("farm_burnt");
alt.removeIpl("farm_burnt_lod");
alt.removeIpl("farm_burnt_props");
alt.removeIpl("farmint_cap");
alt.removeIpl("farmint_cap_lod");
alt.requestIpl("farm");
alt.requestIpl("farmint");
alt.requestIpl("farm_lod");
alt.requestIpl("farm_props");
alt.requestIpl("facelobby");
alt.removeIpl("CS1_02_cf_offmission");
alt.requestIpl("CS1_02_cf_onmission1");
alt.requestIpl("CS1_02_cf_onmission2");
alt.requestIpl("CS1_02_cf_onmission3");
alt.requestIpl("CS1_02_cf_onmission4");
alt.requestIpl("v_rockclub");
alt.requestIpl("v_janitor");
alt.removeIpl("hei_bi_hw1_13_door");
alt.requestIpl("bkr_bi_hw1_13_int");
alt.requestIpl("ufo");
alt.requestIpl("ufo_lod");
alt.requestIpl("ufo_eye");
alt.removeIpl("v_carshowroom");
alt.removeIpl("shutter_open");
alt.removeIpl("shutter_closed");
alt.removeIpl("shr_int");
alt.requestIpl("csr_afterMission");
alt.requestIpl("v_carshowroom");
alt.requestIpl("shr_int");
alt.requestIpl("shutter_closed");
alt.requestIpl("smboat");
alt.requestIpl("smboat_distantlights");
alt.requestIpl("smboat_lod");
alt.requestIpl("smboat_lodlights");
alt.requestIpl("cargoship");
alt.requestIpl("railing_start");
alt.removeIpl("sp1_10_fake_interior");
alt.removeIpl("sp1_10_fake_interior_lod");
alt.requestIpl("sp1_10_real_interior");
alt.requestIpl("sp1_10_real_interior_lod");
alt.removeIpl("id2_14_during_door");
alt.removeIpl("id2_14_during1");
alt.removeIpl("id2_14_during2");
alt.removeIpl("id2_14_on_fire");
alt.removeIpl("id2_14_post_no_int");
alt.removeIpl("id2_14_pre_no_int");
alt.removeIpl("id2_14_during_door");
alt.requestIpl("id2_14_during1");
alt.removeIpl("Coroner_Int_off");
alt.requestIpl("coronertrash");
alt.requestIpl("Coroner_Int_on");
alt.removeIpl("bh1_16_refurb");
alt.removeIpl("jewel2fake");
alt.removeIpl("bh1_16_doors_shut");
alt.requestIpl("refit_unload");
alt.requestIpl("post_hiest_unload");
alt.requestIpl("Carwash_with_spinners");
alt.requestIpl("KT_CarWash");
alt.requestIpl("ferris_finale_Anim");
alt.removeIpl("ch1_02_closed");
alt.requestIpl("ch1_02_open");
alt.requestIpl("AP1_04_TriAf01");
alt.requestIpl("CS2_06_TriAf02");
alt.requestIpl("CS4_04_TriAf03");
alt.removeIpl("scafstartimap");
alt.requestIpl("scafendimap");
alt.removeIpl("DT1_05_HC_REMOVE");
alt.requestIpl("DT1_05_HC_REQ");
alt.requestIpl("DT1_05_REQUEST");
alt.requestIpl("dt1_05_hc_remove");
alt.requestIpl("dt1_05_hc_remove_lod");
alt.requestIpl("FINBANK");
alt.removeIpl("DT1_03_Shutter");
alt.removeIpl("DT1_03_Gr_Closed");
alt.requestIpl("golfflags");
alt.requestIpl("airfield");
alt.requestIpl("v_garages");
alt.requestIpl("v_foundry");
alt.requestIpl("hei_yacht_heist");
alt.requestIpl("hei_yacht_heist_Bar");
alt.requestIpl("hei_yacht_heist_Bedrm");
alt.requestIpl("hei_yacht_heist_Bridge");
alt.requestIpl("hei_yacht_heist_DistantLights");
alt.requestIpl("hei_yacht_heist_enginrm");
alt.requestIpl("hei_yacht_heist_LODLights");
alt.requestIpl("hei_yacht_heist_Lounge");
alt.requestIpl("hei_carrier");
alt.requestIpl("hei_Carrier_int1");
alt.requestIpl("hei_Carrier_int2");
alt.requestIpl("hei_Carrier_int3");
alt.requestIpl("hei_Carrier_int4");
alt.requestIpl("hei_Carrier_int5");
alt.requestIpl("hei_Carrier_int6");
alt.requestIpl("hei_carrier_LODLights");
alt.requestIpl("bkr_bi_id1_23_door");
alt.requestIpl("lr_cs6_08_grave_closed");
alt.requestIpl("hei_sm_16_interior_v_bahama_milo_");
alt.requestIpl("CS3_07_MPGates");
alt.requestIpl("cs5_4_trains");
alt.requestIpl("v_lesters");
alt.requestIpl("v_trevors");
alt.requestIpl("v_michael");
alt.requestIpl("v_comedy");
alt.requestIpl("v_cinema");
alt.requestIpl("V_Sweat");
alt.requestIpl("V_35_Fireman");
alt.requestIpl("redCarpet");
alt.requestIpl("triathlon2_VBprops");
alt.requestIpl("jetstenativeurnel");
alt.requestIpl("Jetsteal_ipl_grp1");
alt.requestIpl("v_hospital");
alt.removeIpl("RC12B_Default");
alt.removeIpl("RC12B_Fixed");
alt.requestIpl("RC12B_Destroyed");
alt.requestIpl("RC12B_HospitalInterior");
alt.requestIpl("canyonriver01");
alt.requestIpl("canyonriver01_lod");
alt.requestIpl("cs3_05_water_grp1");
alt.requestIpl("cs3_05_water_grp1_lod");
alt.requestIpl("trv1_trail_start");
alt.requestIpl("CanyonRvrShallow");
alt.loadDefaultIpls();
});

alt.onServer("freeroam:sendNotification", sendNotification);
Expand Down
2 changes: 1 addition & 1 deletion freeroam/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as alt from "alt-server";
import * as chat from "chat";
import * as chat from "alt:chat";

const spawns = [
{ x: -695.1956176757812, y: 83.94725036621094, z: 55.85205078125 },
Expand Down
2 changes: 1 addition & 1 deletion gangwar/client/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as alt from "alt-client";
import * as game from "natives";
import * as chat from "chat";
import * as chat from "alt:chat";

let myTeam = null;

Expand Down
2 changes: 1 addition & 1 deletion gangwar/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as alt from "alt-server";
import * as chat from "chat";
import * as chat from "alt:chat";
import fs from "fs";
import { resolve, dirname } from "path";

Expand Down
2 changes: 0 additions & 2 deletions voice/client/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use strict";
import * as alt from "alt-client";
import * as native from "natives";

alt.on("keyup", (keycode) => {
switch (keycode) {
Expand Down
2 changes: 1 addition & 1 deletion voice/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as alt from "alt-server";
import * as chat from "chat";
import * as chat from "alt:chat";

// list of voice ranges in meter
const rangeArray = [5, 10, 20];
Expand Down

0 comments on commit 665edb2

Please sign in to comment.