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) => {
|
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(() => {
|
||||||
|
|||||||
@@ -256,6 +256,8 @@ namespace reallife_gamemode.Server.Util
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NAPI.Util.ConsoleOutput("new data");
|
||||||
|
|
||||||
return default(VehicleSyncData); //null
|
return default(VehicleSyncData); //null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user