try fixing vehicle sync issues

This commit is contained in:
hydrant
2018-12-18 23:09:54 +01:00
parent 727240072c
commit cf0bd66f78
2 changed files with 3 additions and 2 deletions

View File

@@ -51,8 +51,7 @@ mp.events.add("VehStream_PlayerExitVehicleAttempt", (entity) => {
mp.events.add("VehStream_PlayerExitVehicle", (entity) => { mp.events.add("VehStream_PlayerExitVehicle", (entity) => {
entity = mp.vehicles.atRemoteId(entity); entity = mp.vehicles.atRemoteId(entity);
if (entity === undefined || entity === null || !entity.isAVehicle()) { if (entity === undefined || entity === null/* || !entity.isAVehicle()*/) {
mp.gui.chat.push(typeof entity);
return; return;
} }
setTimeout(() => { setTimeout(() => {

View File

@@ -256,6 +256,8 @@ namespace reallife_gamemode.Server.Util
} }
} }
NAPI.Util.ConsoleOutput("new data");
return default(VehicleSyncData); //null return default(VehicleSyncData); //null
} }