Initial commit

This commit is contained in:
VortrexFTW
2020-09-04 15:56:19 -05:00
commit c536fcd6ef
245 changed files with 14997 additions and 0 deletions

97
scripts/server/job/bus.js Normal file
View File

@@ -0,0 +1,97 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: bus.js
// DESC: Provides bus driver job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================
let busRoutes = [
false,
// GTA 3
[
// PORTLAND ISLAND ROUTE 1
{
name: "Portland Red Line",
island: 1,
busColour: toColour(120, 0, 0, 255),
positions: [
new Vec3(1269, -1056.4, 14.75),
new Vec3(1088.7, -968.8, 14.91),
new Vec3(1059.1, -870.9, 14.91),
new Vec3(917.6, -815.9, 14.91),
new Vec3(851.1, -766.1, 14.91),
new Vec3(838.8, -598.7, 14.91),
new Vec3(959.3, -581.6, 14.91),
new Vec3(853.1, -485.9, 14.91),
new Vec3(838.8, -312.68, 6.8),
new Vec3(913.9, -177.4, 4.91),
new Vec3(1123.3, -67.74, 7.41),
new Vec3(1043.6, -191.63, 4.91),
new Vec3(1213.2, -281.3, 25.76),
new Vec3(1193.3, -474.3, 24.98),
new Vec3(1335.4, -499.7, 45.28),
new Vec3(1220.3, -341.4, 26.38),
new Vec3(1122.6, -475.6, 19.91),
new Vec3(1309.2, -642.4, 12.3),
new Vec3(1350.5, -845, 14.91),
new Vec3(1322.2, -1025.3, 14.76),
],
},
// STAUNTON ISLAND ROUTE 1
{
name: "Staunton Red Line",
island: 2,
busColour: toColour(120, 0, 0, 255),
positions: [
new Vec3(-1.11, -388.4, 16.11),
new Vec3(-15.75, -735.3, 26.15),
new Vec3(33.63, -1029.4, 26.11),
new Vec3(-53.92, -1233.4, 26.11),
new Vec3(126.58, -1323.7, 26.11),
new Vec3(189.39, -1285.6, 26.11),
new Vec3(266.9, -1179.1, 26.11),
new Vec3(283.93, -1370.2, 26.11),
new Vec3(144.44, -1455.5, 26.11),
new Vec3(34.5, -1511.7, 26.11),
new Vec3(325.31, -1579, 26.03),
new Vec3(302.33, -1417.7, 26.11),
new Vec3(309.76, -1290, 26.11),
new Vec3(378.5, -1235.1, 26.11),
new Vec3(404, -1376.3, 26.11),
new Vec3(189.07, -1159.3, 26.11),
new Vec3(189.44, -956.9, 26.11),
new Vec3(254.18, -722.3, 26.11),
new Vec3(383.4, -704.2, 26.11),
new Vec3(429.3, -420.6, 22.04),
new Vec3(570.9, -336.4, 19.71),
new Vec3(267.46, 91.12, 15.96),
new Vec3(99.13, -31.96, 16.11),
new Vec3(243.94, -187.01, 21.31),
new Vec3(99.17, -263.44, 16.11),
new Vec3(-26.92, -283.73, 16.11),
],
},
],
// GTA VC
[
],
// GTA SA
[
],
false,
// GTA IV
[
],
];

View File

@@ -0,0 +1,9 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: drug.js
// DESC: Provides drug runner/dealer job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================

View File

@@ -0,0 +1,9 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: fire.js
// DESC: Provides firefighter job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================

View File

@@ -0,0 +1,72 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: garbage.js
// DESC: Provides garbage collector job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================
let garbageRoutes = [
false,
// GTA 3
[
// PORTLAND ISLAND ROUTE 1
{
name: "Portland #1",
island: 1,
positions: [
new Vec3(1169.8, -45.54, 10.4),
new Vec3(928, -59.1, 8.61),
new Vec3(935.4, -262.45, 5.52),
new Vec3(935.4, -262.45, 5.52),
new Vec3(1042.5, -375.9, 15.4),
new Vec3(987, -450.5, 15.39),
new Vec3(871.3, -277.07, 5.4),
new Vec3(1119.4, -766.7, 15.4),
new Vec3(1082.3, -990.8, 15.4),
new Vec3(1166.9, -1046.8, 15.41),
new Vec3(1310.1, -980.4, 15.46),
new Vec3(1129.5, -645.3, 15.4),
new Vec3(1128.9, -446.1, 20.41),
new Vec3(1226.5, -52.41, 10.42) ,
],
},
// STAUNTON ISLAND ROUTE 1
{
name: "Staunton #1",
island: 2,
positions: [
new Vec3(49.85, -1539.9, 26.6),
new Vec3(49.71, -1458.1, 26.6),
new Vec3(170.78, -1403.8, 26.59),
new Vec3(183.48, -1485.9, 26.6),
new Vec3(320.43, -1452.4, 26.6),
new Vec3(310.13, -1311.8, 26.6),
new Vec3(134.76, -1097.7, 26.6),
new Vec3(55.63, -1058.6, 26.6),
new Vec3(-0.02, -790.9, 26.64),
],
},
],
// GTA VC
[
],
// GTA SA
[
],
false,
// GTA IV
[
],
];

View File

@@ -0,0 +1,9 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: medic.js
// DESC: Provides medic job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================

View File

@@ -0,0 +1,183 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: police.js
// DESC: Provides police officer job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================
function policeTazerCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)){
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------
function policeCuffCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)) {
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------
function policeArrestCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)) {
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------
function policeSearchCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)) {
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------
function policeDragCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)) {
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------
function policeDetainCommand(command, params, client) {
if(!canClientUseJobs(client) || !!canClientUsePoliceJob(client)) {
return false;
}
if(doesCommandRequireLogin(command)) {
if(!isClientLoggedIn(client)) {
messageClientError(client, "You are not logged in!");
return false;
}
}
if(isClientFromDiscord(client)) {
if(!isCommandAllowedOnDiscord(command)) {
messageClientError(client, "That command isn't available on discord!");
return false;
}
}
if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) {
messageClientError(client, "You do not have permission to use this command!");
return false;
}
return true;
}
// ---------------------------------------------------------------------------

View File

@@ -0,0 +1,9 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: taxi.js
// DESC: Provides taxi driver job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================

View File

@@ -0,0 +1,9 @@
// ===========================================================================
// Asshat Gaming RP
// http://asshatgaming.com
// © 2019 Asshat Gaming
// ---------------------------------------------------------------------------
// FILE: weapon.js
// DESC: Provides weapons dealer job functions and usage
// TYPE: Job (JavaScript)
// ===========================================================================