Add element stream distance getters

This commit is contained in:
Vortrex
2022-10-19 23:57:47 -05:00
parent 74b766ee58
commit 6e7a5780cc

View File

@@ -1212,6 +1212,30 @@ function setElementStreamOutDistance(element, distance) {
// ===========================================================================
function getElementStreamInDistance(element) {
if (!isNull(element) && element != false) {
if (typeof element == "Entity") {
if (typeof element.streamInDistance != "undefined") {
return element.streamInDistance;
}
}
}
}
// ===========================================================================
function getElementStreamOutDistance(element) {
if (!isNull(element) && element != false) {
if (typeof element == "Entity") {
if (typeof element.streamOutDistance != "undefined") {
return element.streamOutDistance;
}
}
}
}
// ===========================================================================
function getPlayerPed(client) {
if (isNull(client)) {
return null;