Use renamed game feature names

This commit is contained in:
Vortrex
2022-08-01 02:15:20 -05:00
parent fd10ae6665
commit 2d3eb800b3
6 changed files with 38 additions and 34 deletions

View File

@@ -470,7 +470,7 @@ function getServerName() {
// ===========================================================================
function createGamePickup(modelIndex, position, type) {
if (!isGameFeatureSupported("pickups")) {
if (!isGameFeatureSupported("pickup")) {
return false;
}
return game.createPickup(modelIndex, position, type);
@@ -479,7 +479,7 @@ function createGamePickup(modelIndex, position, type) {
// ===========================================================================
function createGameBlip(position, type = 0, colour = toColour(255, 255, 255, 255)) {
if (!isGameFeatureSupported("blips")) {
if (!isGameFeatureSupported("blip")) {
return false;
}
return game.createBlip(type, position, 1, colour);
@@ -488,7 +488,7 @@ function createGameBlip(position, type = 0, colour = toColour(255, 255, 255, 255
// ===========================================================================
function createGameObject(modelIndex, position) {
if (!isGameFeatureSupported("objects")) {
if (!isGameFeatureSupported("object")) {
return false;
}
return game.createObject(getGameConfig().objects[getGame()][modelIndex][0], position);
@@ -1251,7 +1251,7 @@ function setElementShownByDefault(element, state) {
// ===========================================================================
function createAttachedGameBlip(element, type, size, colour = toColour(255, 255, 255, 255)) {
if (isGameFeatureSupported("attachedBlips")) {
if (isGameFeatureSupported("attachedBlip")) {
return game.createBlipAttachedTo(element, type, size, colour, true, false);
}
}