Change net event and const prefix

This commit is contained in:
Vortrex
2022-06-30 18:29:00 -05:00
parent dd3f027c1e
commit 2f7f3a1b00
51 changed files with 1124 additions and 1125 deletions

View File

@@ -117,8 +117,8 @@ function playStreamingRadioCommand(command, params, client) {
}
}
} else {
if (doesEntityDataExist(client, "vrr.inHouse")) {
let houseId = getEntityData(client, "vrr.inHouse");
if (doesEntityDataExist(client, "agrp.inHouse")) {
let houseId = getEntityData(client, "agrp.inHouse");
if (radioStationId == 0) {
getHouseData(houseId).streamingRadioStation = -1;
getHouseData(houseId).needsSaved = true;
@@ -127,7 +127,7 @@ function playStreamingRadioCommand(command, params, client) {
let clients = getClients();
for (let i in clients) {
if (getEntityData(clients[i], "vrr.inHouse") == houseId) {
if (getEntityData(clients[i], "agrp.inHouse") == houseId) {
playRadioStreamForPlayer(clients[i], "");
}
}
@@ -139,7 +139,7 @@ function playStreamingRadioCommand(command, params, client) {
let clients = getClients();
for (let i in clients) {
if (getEntityData(clients[i], "vrr.inHouse") == houseId) {
if (getEntityData(clients[i], "agrp.inHouse") == houseId) {
playRadioStreamForPlayer(clients[i], getRadioStationData(radioStationId - 1).url, true, getPlayerStreamingRadioVolume(clients[i]));
}
}