Lots of changes and fixes
* Add guiReady state * Add mouseCameraEnabled state * Make sure GUI is ready on some things * Fix wrong veh prop funcs being used clientside * Add local player ped parts/props util for IV * Add vehicle.lightStatus sync * Add element interior sync * Dont use interior on IV * Use new class structure * Set default anim offset to 1 * Set biz data to save when changing biz properties * Add mouse cam state util * Prefix item type admin cmds with "itemtype" * Fix server config saving * Fix server time setting hour to minute arg * Add player returnTo data types * Make veh rent/buy price numbers readable * Fix wrong house index being used to create blip/pickup on create * Don't cache player hotbar items if working * Fix cache player hotbar items util * Add lots of anims to GTA SA * Try/catch on all data saving to prevent one from blocking the rest * Fix readable time from showing AM for 12 PM (noon) * Set veh interior on create * Dont set engine for spawnlocked vehicles
This commit is contained in:
@@ -37,7 +37,7 @@ function loadHousesFromDatabase() {
|
||||
if(dbQuery) {
|
||||
if(dbQuery.numRows > 0) {
|
||||
while(dbAssoc = fetchQueryAssoc(dbQuery)) {
|
||||
let tempHouseData = new serverClasses.houseData(dbAssoc);
|
||||
let tempHouseData = new HouseData(dbAssoc);
|
||||
tempHouses.push(tempHouseData);
|
||||
logToConsole(LOG_VERBOSE, `[VRR.House]: House '${tempHouseData.description}' (ID ${tempHouseData.databaseId}) loaded!`);
|
||||
}
|
||||
@@ -62,7 +62,7 @@ function loadHousesFromDatabase() {
|
||||
*
|
||||
*/
|
||||
function createHouseCommand(command, params, client) {
|
||||
let entranceLocation = new serverClasses.houseLocationData(false);
|
||||
let entranceLocation = new HouseLocationData(false);
|
||||
entranceLocation.entrancePosition = getPlayerPosition(client);
|
||||
entranceLocation.entranceRotation = 0.0;
|
||||
entranceLocation.entrancePickupModel = getGameConfig().pickupModels[getServerGame()].house;
|
||||
@@ -82,10 +82,10 @@ function createHouseCommand(command, params, client) {
|
||||
|
||||
saveHouseToDatabase(houseId-1);
|
||||
|
||||
createHouseEntrancePickup(houseId);
|
||||
createHouseExitPickup(houseId);
|
||||
createHouseEntranceBlip(houseId);
|
||||
createHouseExitBlip(houseId);
|
||||
createHouseEntrancePickup(houseId-1);
|
||||
createHouseExitPickup(houseId-1);
|
||||
createHouseEntranceBlip(houseId-1);
|
||||
createHouseExitBlip(houseId-1);
|
||||
|
||||
//getHouseData(houseId).needsSaved = true;
|
||||
|
||||
@@ -382,7 +382,7 @@ function setHouseInteriorTypeCommand(command, params, client) {
|
||||
}
|
||||
|
||||
if(isNaN(typeParam)) {
|
||||
let tempHouseLocation = new serverClasses.houseLocationData(false);
|
||||
let tempHouseLocation = new HouseLocationData(false);
|
||||
|
||||
if(toLowerCase(typeParam) == "none") {
|
||||
tempHouseLocation.exitPosition = toVector3(0.0, 0.0, 0.0);
|
||||
@@ -591,7 +591,7 @@ function deleteHouse(houseId, whoDeleted = 0) {
|
||||
|
||||
removePlayersFromHouse(houseId);
|
||||
|
||||
getServerData().houses.splice(houseId, 1);
|
||||
getServerData().houses[houseId] = false;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
@@ -620,7 +620,7 @@ function removePlayerFromHouses(client) {
|
||||
*
|
||||
*/
|
||||
function createHouse(description, entranceLocation) {
|
||||
let tempHouseData = new serverClasses.houseData(false);
|
||||
let tempHouseData = new HouseData(false);
|
||||
tempHouseData.description = description;
|
||||
|
||||
tempHouseData.entrancePosition = entranceLocation.entrancePosition;
|
||||
|
||||
Reference in New Issue
Block a user