try fixing vehicle sync issues
This commit is contained in:
@@ -51,8 +51,7 @@ mp.events.add("VehStream_PlayerExitVehicleAttempt", (entity) => {
|
||||
|
||||
mp.events.add("VehStream_PlayerExitVehicle", (entity) => {
|
||||
entity = mp.vehicles.atRemoteId(entity);
|
||||
if (entity === undefined || entity === null || !entity.isAVehicle()) {
|
||||
mp.gui.chat.push(typeof entity);
|
||||
if (entity === undefined || entity === null/* || !entity.isAVehicle()*/) {
|
||||
return;
|
||||
}
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -256,6 +256,8 @@ namespace reallife_gamemode.Server.Util
|
||||
}
|
||||
}
|
||||
|
||||
NAPI.Util.ConsoleOutput("new data");
|
||||
|
||||
return default(VehicleSyncData); //null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user