Check for server elements and interior feature
This commit is contained in:
@@ -208,6 +208,7 @@ function setLocalPlayerInterior(interior) {
|
||||
//}
|
||||
}
|
||||
|
||||
if (areServerElementsSupported() && isGameFeatureSupported("interior")) {
|
||||
let vehicles = getElementsByType(ELEMENT_VEHICLE);
|
||||
for (let i in vehicles) {
|
||||
if (getEntityData(vehicles[i], "vrr.interior")) {
|
||||
@@ -215,6 +216,7 @@ function setLocalPlayerInterior(interior) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user