internal bool OnTrailerUpdate(int playerId, int vehicleId) { var args = new TrailerEventArgs(GtaPlayer.FindOrCreate(playerId)); OnTrailerUpdate(GtaVehicle.FindOrCreate(vehicleId), args); return(!args.PreventPropagation); }
internal bool OnTrailerUpdate(int playerId, int vehicleid) { var vehicle = BaseVehicle.Find(vehicleid); if (vehicle == null) { return(true); } var args = new TrailerEventArgs(BasePlayer.FindOrCreate(playerId)); OnTrailerUpdate(vehicle, args); return(!args.PreventPropagation); }