Add respawn time to veh class
This commit is contained in:
@@ -97,7 +97,6 @@ class ServerData {
|
|||||||
|
|
||||||
if(dbAssoc) {
|
if(dbAssoc) {
|
||||||
this.databaseId = dbAssoc["svr_id"];
|
this.databaseId = dbAssoc["svr_id"];
|
||||||
console.log("1");
|
|
||||||
this.newCharacter = {
|
this.newCharacter = {
|
||||||
spawnPosition: toVector3(dbAssoc["svr_newchar_pos_x"], dbAssoc["svr_newchar_pos_y"], dbAssoc["svr_newchar_pos_z"]),
|
spawnPosition: toVector3(dbAssoc["svr_newchar_pos_x"], dbAssoc["svr_newchar_pos_y"], dbAssoc["svr_newchar_pos_z"]),
|
||||||
spawnHeading: dbAssoc["svr_newchar_rot_z"],
|
spawnHeading: dbAssoc["svr_newchar_rot_z"],
|
||||||
@@ -945,6 +944,8 @@ class VehicleData {
|
|||||||
this.interior = 0;
|
this.interior = 0;
|
||||||
this.dimension = 0;
|
this.dimension = 0;
|
||||||
|
|
||||||
|
this.respawnTime = 0;
|
||||||
|
|
||||||
if(dbAssoc) {
|
if(dbAssoc) {
|
||||||
// General Info
|
// General Info
|
||||||
this.databaseId = toInteger(dbAssoc["veh_id"]);
|
this.databaseId = toInteger(dbAssoc["veh_id"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user