Merge branch 'nightly' into ragemp

This commit is contained in:
Vortrex
2022-10-25 22:57:40 -05:00
37 changed files with 981 additions and 567 deletions

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;
@@ -1487,4 +1511,10 @@ function getContentsOfTextFile(filePath) {
return loadTextFile(filePath);
}
// ===========================================================================
function setServerRule(ruleName, ruleValue) {
server.setRule(ruleName, ruleValue);
}
// ===========================================================================