Fixed new issue with vehicle sync

This commit is contained in:
hydrant
2018-12-14 18:19:21 +01:00
parent 3fc109ff8b
commit e927eee227

View File

@@ -441,6 +441,7 @@ mp.events.add("VehStream_SetVehicleWheelStatus", (...args) => {
//Sync data on stream in
mp.events.add("entityStreamIn", (entity) => {
if (entity === undefined) return;
if (entity.type === "vehicle") {
let typeor = typeof entity.getVariable('VehicleSyncData');
let actualData = entity.getVariable('VehicleSyncData');