Fix changed util for vec3 offset
This commit is contained in:
@@ -101,7 +101,7 @@ function createGroundItemObject(itemId) {
|
|||||||
deleteGroundItemObject(itemId);
|
deleteGroundItemObject(itemId);
|
||||||
}
|
}
|
||||||
|
|
||||||
getItemData(itemId).object = gta.createObject(getItemTypeData(getItemData(itemId).itemTypeIndex).dropModel, applyOffsetToVector3(getItemData(itemId).position, getItemTypeData(getItemData(itemId).itemTypeIndex).dropPosition));
|
getItemData(itemId).object = gta.createObject(getItemTypeData(getItemData(itemId).itemTypeIndex).dropModel, applyOffsetToPos(getItemData(itemId).position, getItemTypeData(getItemData(itemId).itemTypeIndex).dropPosition));
|
||||||
getItemData(itemId).object.setRotation(getItemTypeData(getItemData(itemId).itemTypeIndex).dropRotation);
|
getItemData(itemId).object.setRotation(getItemTypeData(getItemData(itemId).itemTypeIndex).dropRotation);
|
||||||
getItemData(itemId).object.dimension = getItemData(itemId).dimension;
|
getItemData(itemId).object.dimension = getItemData(itemId).dimension;
|
||||||
setEntityData(getItemData(itemId).object, "ag.scale", getItemTypeData(getItemData(itemId).itemTypeIndex).dropScale, true);
|
setEntityData(getItemData(itemId).object, "ag.scale", getItemTypeData(getItemData(itemId).itemTypeIndex).dropScale, true);
|
||||||
@@ -1013,7 +1013,7 @@ function listBusinessFloorInventoryCommand(command, params, client) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!getBusinessData(businessId).locked) {
|
if(getBusinessData(businessId).locked) {
|
||||||
messagePlayerError(client, "This business is closed!");
|
messagePlayerError(client, "This business is closed!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1027,7 +1027,7 @@ function listBusinessFloorInventoryCommand(command, params, client) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
messagePlayerNormal(client, `🏢 [#0099FF]== Business Items =========================`);
|
messagePlayerNormal(client, `💲 [#0099FF]== Business Items =========================`);
|
||||||
let perChunk=5;
|
let perChunk=5;
|
||||||
let splitItemDisplay = itemDisplay.reduce((all,one,i) => {
|
let splitItemDisplay = itemDisplay.reduce((all,one,i) => {
|
||||||
const ch = Math.floor(i/perChunk);
|
const ch = Math.floor(i/perChunk);
|
||||||
@@ -1050,7 +1050,7 @@ function listHouseInventoryCommand(command, params, client) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!getHouseData(houseId).locked) {
|
if(getHouseData(houseId).locked) {
|
||||||
messagePlayerError(client, "This house is locked!");
|
messagePlayerError(client, "This house is locked!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1117,8 +1117,11 @@ function listItemInventoryCommand(command, params, client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function getItemData(itemId) {
|
function getItemData(itemId) {
|
||||||
|
if(typeof getServerData().items[itemId] != "undefined") {
|
||||||
return getServerData().items[itemId];
|
return getServerData().items[itemId];
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user